Commit c1010e0
authored
fix: allow getter-setter combinations in property declarations (#234)
The property_declaration rule previously used
choice(optional(getter), optional(setter)) which only allowed ONE
accessor. Properties with both getter and setter had the second
accessor spill out as a top-level declaration.
Change to optional(choice(seq(getter, optional(setter)),
seq(setter, optional(getter)))) to allow both accessors as children
of the property node, matching JetBrains PSI structure.1 parent 87f81d4 commit c1010e0
3 files changed
+641196
-557078
lines changed| Original file line number | Diff line number | Diff line change |
|---|
| Original file line number | Diff line number | Diff line change |
|---|
| Original file line number | Diff line number | Diff line change |
|---|
0 commit comments