-
-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
Description
Did you check existing issues?
- I have read all the tree-sitter docs if it relates to using the parser
- I have searched the existing issues of tree-sitter-typescript
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version
)
tree-sitter 0.25.4 (726dcd1e872149d95de581589fc408fb8ea9cb0b)
Describe the bug
Similar bug to what has been already reported in #309 but only happens when export
modifier is added to the class declaration.
This prevents from finding class declarations that contain only specific decorators, as in exported case, decorator is not child of a class, but rather its preceding sibling.
Bad Parse Tree
export_statement
- decorator
- class declaration
class_declaration
- decorator
Expected Parse Tree
export_statement
- class declaration
- decorator
class_declaration
- decorator
Repro
@One()
export class HelloWorld {}
@Two()
class HelloThere {}