@@ -1556,7 +1556,7 @@ constant_declarator
1556
1556
// Source: §13.6.4 Local function declarations
1557
1557
local_function_declaration
1558
1558
: local_function_modifier* return_type local_function_header local_function_body
1559
- | ref_kind ref_return_type local_function_header ref_local_function_body
1559
+ | ref_local_function_modifier* ref_kind ref_return_type local_function_header ref_local_function_body
1560
1560
;
1561
1561
1562
1562
local_function_header
@@ -1565,8 +1565,12 @@ local_function_header
1565
1565
;
1566
1566
1567
1567
local_function_modifier
1568
- : 'async'
1569
- | unsafe_modifier // unsafe code support
1568
+ : ref_local_function_modifier
1569
+ | 'async'
1570
+ ;
1571
+
1572
+ ref_local_function_modifier
1573
+ : unsafe_modifier // unsafe code support
1570
1574
;
1571
1575
1572
1576
local_function_body
@@ -2010,7 +2014,6 @@ method_header
2010
2014
method_modifier
2011
2015
: ref_method_modifier
2012
2016
| 'async'
2013
- | unsafe_modifier // unsafe code support
2014
2017
;
2015
2018
2016
2019
ref_method_modifier
@@ -2025,6 +2028,7 @@ ref_method_modifier
2025
2028
| 'override'
2026
2029
| 'abstract'
2027
2030
| 'extern'
2031
+ | unsafe_modifier // unsafe code support
2028
2032
;
2029
2033
2030
2034
return_type
@@ -2539,7 +2543,7 @@ enum_member_declaration
2539
2543
// Source: §20.2 Delegate declarations
2540
2544
delegate_declaration
2541
2545
: attributes? delegate_modifier* 'delegate' return_type delegate_header
2542
- | attributes? ref_delegate_modifier * 'delegate' ref_kind ref_return_type delegate_header
2546
+ | attributes? delegate_modifier * 'delegate' ref_kind ref_return_type delegate_header
2543
2547
;
2544
2548
2545
2549
delegate_header
@@ -2548,16 +2552,12 @@ delegate_header
2548
2552
;
2549
2553
2550
2554
delegate_modifier
2551
- : ref_delegate_modifier
2552
- | unsafe_modifier // unsafe code support
2553
- ;
2554
-
2555
- ref_delegate_modifier
2556
2555
: 'new'
2557
2556
| 'public'
2558
2557
| 'protected'
2559
2558
| 'internal'
2560
2559
| 'private'
2560
+ | unsafe_modifier // unsafe code support
2561
2561
;
2562
2562
2563
2563
// Source: §22.3 Attribute specification
0 commit comments