fix(semantic): remove unnecessary SymbolFlags::Import (#2311)

This commit is contained in:
Dunqing 2024-02-05 14:16:29 +08:00 committed by GitHub
parent ad64e0b395
commit 540b2a0396
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -278,7 +278,7 @@ fn declare_symbol_for_import_specifier(ident: &BindingIdentifier, builder: &mut
let symbol_id = builder.declare_symbol(
ident.span,
&ident.name,
SymbolFlags::Import | SymbolFlags::ImportBinding,
SymbolFlags::ImportBinding,
SymbolFlags::ImportBindingExcludes,
);
ident.symbol_id.set(Some(symbol_id));

View file

@ -29,8 +29,6 @@ bitflags! {
const BlockScopedVariable = 1 << 1;
/// A const variable (const)
const ConstVariable = 1 << 2;
/// Is this symbol inside an import declaration
const Import = 1 << 3;
/// Is this symbol inside an export declaration
const Export = 1 << 4;
const Class = 1 << 5;