Skip to content

ast: the field qualifier of TSImportType shouldn't have a IdentifierReference #12042

@Dunqing

Description

@Dunqing

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.

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions