Skip to content

bug: export specifier isn't recognized #313

Open
@emosheeep

Description

@emosheeep

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)

No response

Describe the bug

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

downstream: ast-grep/ast-grep#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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions