-
-
Notifications
You must be signed in to change notification settings - Fork 723
Closed
Copy link
Labels
A-parserArea - ParserArea - Parser
Description
I just found out that the field qualifier of TSImportType is TSTypeName, so that there is an identifier reference. But this is wrong because TSImportType shouldn't have any reference.
oxc/crates/oxc_ast/src/ast/ts.rs
Lines 1353 to 1359 in fadbd93
| pub struct TSImportType<'a> { | |
| pub span: Span, | |
| pub argument: TSType<'a>, | |
| pub options: Option<Box<'a, ObjectExpression<'a>>>, | |
| pub qualifier: Option<TSTypeName<'a>>, | |
| pub type_arguments: Option<Box<'a, TSTypeParameterInstantiation<'a>>>, | |
| } |
type A = import("./a").b.c
^ This is an identifier reference now.But can never reference it.
Metadata
Metadata
Assignees
Labels
A-parserArea - ParserArea - Parser