tree-sitter-typescript
tree-sitter-typescript copied to clipboard
bug: export specifier isn't recognized
Did you check existing issues?
- [ ] I have read all the tree-sitter docs if it relates to using the parser
- [X] I have searched the existing issues of tree-sitter-typescript
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
downstream: https://github.com/ast-grep/ast-grep/issues/1458
Steps To Reproduce/Bad Parse Tree
type is an export specifier but isn't recognized.
export type { type } from './Button';
export { type } from './Button';
Repro
type is a variable exported by the Button
// ./Button.ts
export const type = 1;