File tree 3 files changed +10
-10
lines changed 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1930,7 +1930,6 @@ method_header
1930
1930
method_modifier
1931
1931
: ref_method_modifier
1932
1932
| 'async'
1933
- | unsafe_modifier // unsafe code support
1934
1933
;
1935
1934
1936
1935
ref_method_modifier
@@ -1945,6 +1944,7 @@ ref_method_modifier
1945
1944
| 'override'
1946
1945
| 'abstract'
1947
1946
| 'extern'
1947
+ | unsafe_modifier // unsafe code support
1948
1948
;
1949
1949
1950
1950
return_type
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ A *delegate_declaration* is a *type_declaration* ([§14.7](namespaces.md#147-typ
13
13
``` ANTLR
14
14
delegate_declaration
15
15
: attributes? delegate_modifier* 'delegate' return_type delegate_header
16
- | attributes? ref_delegate_modifier * 'delegate' ref_kind ref_return_type delegate_header
16
+ | attributes? delegate_modifier * 'delegate' ref_kind ref_return_type delegate_header
17
17
;
18
18
19
19
delegate_header
@@ -22,16 +22,12 @@ delegate_header
22
22
;
23
23
24
24
delegate_modifier
25
- : ref_delegate_modifier
26
- | unsafe_modifier // unsafe code support
27
- ;
28
-
29
- ref_delegate_modifier
30
25
: 'new'
31
26
| 'public'
32
27
| 'protected'
33
28
| 'internal'
34
29
| 'private'
30
+ | unsafe_modifier // unsafe code support
35
31
;
36
32
```
37
33
Original file line number Diff line number Diff line change @@ -447,7 +447,7 @@ A *local_function_declaration* declares a local function.
447
447
``` ANTLR
448
448
local_function_declaration
449
449
: local_function_modifier* return_type local_function_header local_function_body
450
- | ref_kind ref_return_type local_function_header ref_local_function_body
450
+ | ref_local_function_modifier* ref_kind ref_return_type local_function_header ref_local_function_body
451
451
;
452
452
453
453
local_function_header
@@ -456,8 +456,12 @@ local_function_header
456
456
;
457
457
458
458
local_function_modifier
459
- : 'async'
460
- | unsafe_modifier // unsafe code support
459
+ : ref_local_function_modifier
460
+ | 'async'
461
+ ;
462
+
463
+ ref_local_function_modifier
464
+ : unsafe_modifier // unsafe code support
461
465
;
462
466
463
467
local_function_body
You can’t perform that action at this time.
0 commit comments