@@ -95,30 +95,21 @@ module.exports = grammar({
95
95
conflicts : $ => [
96
96
[ $ . _record_literal_no_const , $ . record_field ] ,
97
97
[ $ . block , $ . set_or_map_literal ] ,
98
- [ $ . _primary , $ . function_signature ] ,
99
98
[ $ . _type_name , $ . _primary , $ . function_signature ] ,
100
99
[ $ . _primary , $ . _type_name ] ,
101
- [ $ . variable_declaration , $ . initialized_variable_definition , ] ,
102
- [ $ . _final_const_var_or_type , $ . function_signature , ] ,
103
- [ $ . _primary , $ . _function_formal_parameter ] ,
104
100
[ $ . _primary , $ . _simple_formal_parameter ] ,
105
- [ $ . _primary , $ . labeled_statement ] ,
106
101
[ $ . _primary , $ . _type_name , $ . _function_formal_parameter ] ,
107
- [ $ . _final_const_var_or_type , $ . _function_formal_parameter ] ,
108
102
[ $ . _primary , $ . constructor_param ] ,
109
103
[ $ . _normal_formal_parameters ] ,
110
104
[ $ . _declared_identifier ] ,
111
105
[ $ . equality_expression ] ,
112
- [ $ . _primary , $ . _type_name , $ . _simple_formal_parameter ] ,
113
106
[ $ . record_type_field , $ . _function_formal_parameter , $ . _var_or_type ] ,
114
107
[ $ . typed_identifier , $ . _var_or_type , $ . _function_formal_parameter ] ,
115
108
[ $ . _type_name , $ . _simple_formal_parameter ] ,
116
109
[ $ . _type_not_function , $ . _type_not_void ] ,
117
110
[ $ . switch_statement_case ] ,
118
111
// [$._argument_list],
119
- [ $ . variable_declaration , $ . initialized_identifier , ] ,
120
112
[ $ . declaration , $ . _external_and_static ] ,
121
- [ $ . method_signature , $ . _static_or_covariant ] ,
122
113
[ $ . constructor_signature , $ . _formal_parameter_part ] ,
123
114
// [$._type_not_function, $._type_not_void],
124
115
[ $ . _cascade_subsection ] ,
@@ -130,11 +121,8 @@ module.exports = grammar({
130
121
[ $ . type_arguments , $ . relational_operator ] ,
131
122
[ $ . prefix_operator , $ . constant_pattern ] ,
132
123
[ $ . _primary , $ . constant_pattern , $ . _type_name ] ,
133
- [ $ . parenthesized_expression , $ . if_statement ] ,
134
- [ $ . _top_level_definition , $ . lambda_expression ] ,
135
124
[ $ . _literal , $ . constant_pattern ] ,
136
125
[ $ . _primary , $ . constant_pattern ] ,
137
- [ $ . _type_not_void_not_function , $ . qualified ] ,
138
126
[ $ . _final_var_or_type ] ,
139
127
[ $ . _primary , $ . constant_pattern , $ . _type_name , $ . _simple_formal_parameter ] ,
140
128
[ $ . _parenthesized_pattern , $ . _pattern_field ] ,
@@ -146,62 +134,42 @@ module.exports = grammar({
146
134
[ $ . _var_or_type , $ . _final_var_or_type , $ . _function_formal_parameter ] ,
147
135
[ $ . set_or_map_literal , $ . map_pattern ] ,
148
136
[ $ . list_literal , $ . list_pattern ] ,
149
- [ $ . _real_expression , $ . _pattern ] ,
150
137
[ $ . constant_pattern , $ . _type_name ] ,
151
138
[ $ . _pattern_field , $ . label ] ,
152
- [ $ . _pattern ] ,
153
139
[ $ . constructor_tearoff , $ . _identifier_or_new ] ,
154
140
[ $ . _primary , $ . constant_pattern , $ . _simple_formal_parameter ] ,
155
141
[ $ . record_type_field , $ . _final_var_or_type ] ,
156
- [ $ . _var_or_type , $ . _final_var_or_type , $ . function_signature ] ,
157
- [ $ . _top_level_definition , $ . _var_or_type , $ . function_signature ] ,
158
142
[ $ . set_or_map_literal , $ . constant_pattern ] ,
159
143
[ $ . list_literal , $ . constant_pattern ] ,
160
- [ $ . set_or_map_literal , $ . block , $ . map_pattern ] ,
161
144
[ $ . _var_or_type , $ . function_signature ] ,
162
145
[ $ . _var_or_type , $ . _function_formal_parameter ] ,
163
146
[ $ . relational_operator , $ . type_arguments , $ . type_parameters ] ,
164
147
[ $ . _var_or_type ] ,
165
- [ $ . _top_level_definition , $ . _var_or_type ] ,
166
- [ $ . _top_level_definition , $ . _final_const_var_or_type ] ,
167
- [ $ . _top_level_definition , $ . const_object_expression , $ . _final_const_var_or_type ] ,
168
148
[ $ . _final_const_var_or_type , $ . const_object_expression ] ,
169
149
[ $ . _final_const_var_or_type ] ,
170
150
[ $ . type_parameter , $ . _type_name ] ,
171
151
[ $ . _normal_formal_parameter ] ,
172
- [ $ . library_name , $ . dotted_identifier_list ] ,
173
- [ $ . _top_level_definition , $ . inferred_type ] ,
174
- [ $ . _final_const_var_or_type , $ . _top_level_definition , $ . function_signature ] ,
175
152
[ $ . _assignable_selector_part , $ . selector ] ,
176
153
[ $ . _assignable_selector_part , $ . _postfix_expression ] ,
177
- [ $ . _assignable_selector_part , $ . postfix_expression ] ,
178
154
[ $ . _primary , $ . assignable_expression ] ,
179
155
[ $ . _simple_formal_parameter , $ . assignable_expression ] ,
180
156
// [$._type_name, $._primary, $.assignable_expression],
181
- [ $ . assignable_expression , $ . postfix_expression ] ,
182
157
[ $ . assignable_expression , $ . _postfix_expression ] ,
183
158
// [$._type_name, $.assignable_expression],
184
159
// [$._type_name, $.function_signature],
185
160
[ $ . _type_name , $ . _function_formal_parameter ] ,
186
161
[ $ . _type_name ] ,
187
162
// [$.assignment_expression, $._expression],
188
- [ $ . assignable_expression ] ,
189
- [ $ . method_signature , $ . declaration , $ . _static_or_covariant ] ,
190
- [ $ . type_arguments ] ,
191
163
[ $ . _primary , $ . _type_name , $ . assignable_expression ] ,
192
- [ $ . _primary , $ . _type_name , $ . assignable_expression , $ . function_signature ] ,
193
- [ $ . _primary , $ . _type_name , $ . assignable_expression , $ . _function_formal_parameter ] ,
194
164
[ $ . _type_name , $ . function_signature ] ,
195
165
// [$.relational_operator, $._shift_operator],
196
166
[ $ . declaration , $ . _external ] ,
197
167
[ $ . relational_expression ] ,
198
- [ $ . factory_constructor_signature , $ . redirecting_factory_constructor_signature ] ,
199
168
[ $ . _function_type_tail ] ,
200
169
[ $ . _type_not_void_not_function , $ . _function_type_tail ] ,
201
170
[ $ . _type_not_void ] ,
202
171
[ $ . _type_not_void_not_function ] ,
203
172
[ $ . super_formal_parameter , $ . unconditional_assignable_selector ] ,
204
- [ $ . function_signature ] ,
205
173
] ,
206
174
207
175
word : $ => $ . identifier ,
@@ -508,7 +476,7 @@ module.exports = grammar({
508
476
/ [ 0 - 7 ] { 1 , 3 } / ,
509
477
/ x [ 0 - 9 a - f A - F ] { 2 } / ,
510
478
/ u [ 0 - 9 a - f A - F ] { 4 } / ,
511
- / u { [ 0 - 9 a - f A - F ] + } /
479
+ / u \ {[ 0 - 9 a - f A - F ] + \ }/
512
480
)
513
481
) ) ,
514
482
escape_sequence : $ => $ . _unused_escape_sequence ,
0 commit comments