tree-sitter-typescript icon indicating copy to clipboard operation
tree-sitter-typescript copied to clipboard

bug: export specifier isn't recognized

Open emosheeep opened this issue 1 year ago • 0 comments

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

CleanShot 2024-09-08 at 23 37 54@2x

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;

emosheeep avatar Sep 08 '24 15:09 emosheeep