Closed aheber closed 3 days ago
good catch! One node is named "field_declaration", the other is "local_variable_declaration". Despite almost the same, they are implemented in different methods.
This is fixed in v0.0.13, and the new test file guards it.
Only on class-level objects. If you use the syntax to define multiple variables of the same type, only the first is being printed.
Example:
Formatted Output:
Parse tree:
For contrast, this formats correctly and doesn't lose anything: