You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the grammar for public_field_definition expects declare to come before any accessibility modifier (eg public) but apparently either order is valid
The text was updated successfully, but these errors were encountered:
The following piece of code is valid but it is parsed incorrectly:
Here's a link to the TypeScript Playground showing that the snippet above is valid JavaScript or TypeScript:
https://www.typescriptlang.org/play?#code/MYGwhgzhAECC0G8BQ1oAcCuAjEBLY0AJgKahgBOx0lYhA9gHYgCe0AZnXdALzQCMAbiQBfJEA
The output of
tree-sitter parse
is the following:It looks like the grammar for
public_field_definition
expectsdeclare
to come before any accessibility modifier (egpublic
) but apparently either order is validThe text was updated successfully, but these errors were encountered: