@@ -97,10 +97,10 @@ named:
9797 top_level :
9898 body : block
9999
100- # An identifier pattern that applies a nested pattern. Used for scoped imports.
100+ # A name pattern that applies a nested pattern. Used for scoped imports.
101101 named_pattern :
102102 modifier* : modifier
103- identifier : identifier
103+ name_node : identifier
104104 sub_pattern : expr
105105
106106 # A pattern expression with modifiers, such as `let x` or `var x`.
@@ -176,15 +176,15 @@ named:
176176
177177 argument :
178178 modifier* : modifier
179- name ? : identifier
179+ name_node ? : identifier
180180 value : expr
181181
182182 # Member access, such as `obj.member`.
183183 #
184184 # For `super.x` the base will be an instance of `super_expr`.
185185 member_access_expr :
186186 base : expr
187- member : identifier
187+ member_name_node : identifier
188188
189189 # A type expression that refers to a type inferred from the contextual type.
190190 # This is used to translate Swift's leading-dot syntax, `.foo`, which means `T.foo` where
@@ -232,7 +232,7 @@ named:
232232 # would have `person` as the external name and a `named_pattern` wrapping `id` as the parameter's pattern.
233233 parameter :
234234 modifier* : modifier
235- external_name ? : identifier
235+ external_name_node ? : identifier
236236 type? : expr
237237 pattern? : expr
238238 default? : expr
@@ -279,17 +279,17 @@ named:
279279
280280 # `break` (with optional label)
281281 break_expr :
282- label ? : identifier
282+ label_name_node ? : identifier
283283
284284 # `continue` (with optional label)
285285 continue_expr :
286- label ? : identifier
286+ label_name_node ? : identifier
287287
288288 # A labeled statement, such as `outer: for ... { ... }`. The labeled
289289 # statement appears as the `stmt` field; `break`/`continue` may target
290290 # the label.
291291 labeled_stmt :
292- label : identifier
292+ label_name_node : identifier
293293 stmt : stmt
294294
295295 # `return value` or bare `return`
@@ -315,15 +315,15 @@ named:
315315 # `typealias Name = Type`
316316 type_alias_declaration :
317317 modifier* : modifier
318- name : identifier
318+ name_node : identifier
319319 type_parameter* : type_parameter
320320 type_constraint* : type_constraint
321321 type : expr
322322
323323 # A top-level function declaration.
324324 function_declaration :
325325 modifier* : modifier
326- name : identifier
326+ name_node : identifier
327327 type_parameter* : type_parameter
328328 type_constraint* : type_constraint
329329 parameter* : parameter
@@ -418,7 +418,7 @@ named:
418418 bulk_importing_pattern :
419419 modifier* : modifier
420420
421- # An simple unqualified identifier token
421+ # A simple unqualified name token
422422 identifier :
423423
424424 # A node that we don't yet translate
@@ -436,7 +436,7 @@ named:
436436
437437 type_parameter :
438438 modifier* : modifier
439- name : identifier
439+ name_node : identifier
440440 bound? : expr
441441
442442 # A generic constraint of the form `T == U`, requiring two types to be
@@ -456,7 +456,7 @@ named:
456456 # `infix operator +++` (and the like) — a declaration of a custom operator.
457457 operator_syntax_declaration :
458458 modifier* : modifier
459- name : identifier
459+ name_node : identifier
460460 # The fixity specifier (`prefix`, `infix`, `postfix`), when applicable.
461461 fixity? : fixity
462462 # The declared precedence level, when present (e.g. Swift's
@@ -471,7 +471,7 @@ named:
471471 # no `name`; the extended type appears as a `base_type`.
472472 class_like_declaration :
473473 modifier* : modifier
474- name ? : identifier
474+ name_node ? : identifier
475475 type_parameter* : type_parameter
476476 type_constraint* : type_constraint
477477 base_type* : base_type
@@ -487,7 +487,7 @@ named:
487487
488488 constructor_declaration :
489489 modifier* : modifier
490- name ? : identifier
490+ name_node ? : identifier
491491 parameter* : parameter
492492 body : block
493493
@@ -507,7 +507,7 @@ named:
507507 # (each observer also tagged with `chained_declaration`).
508508 accessor_declaration :
509509 modifier* : modifier
510- name : identifier
510+ name_node : identifier
511511 accessor_kind : accessor_kind
512512 parameter* : parameter
513513 type? : expr
@@ -523,7 +523,7 @@ named:
523523
524524 associated_type_declaration :
525525 modifier* : modifier
526- name : identifier
526+ name_node : identifier
527527 bound? : expr
528528
529529 generic_type_expr :
0 commit comments