mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
fix(isolated-declarations): should be added to references, not bindings (#3726)
This commit is contained in:
parent
8f64d9992f
commit
0fbecdcd81
2 changed files with 3 additions and 4 deletions
|
|
@ -133,8 +133,8 @@ impl<'a> Visit<'a> for ScopeTree<'a> {
|
|||
|
||||
fn visit_export_default_declaration(&mut self, decl: &ExportDefaultDeclaration<'a>) {
|
||||
if let ExportDefaultDeclarationKind::Identifier(ident) = &decl.declaration {
|
||||
self.add_type_binding(&ident.name);
|
||||
self.add_value_binding(&ident.name);
|
||||
self.add_type_reference(&ident.name);
|
||||
self.add_value_reference(&ident.name);
|
||||
} else {
|
||||
walk_export_default_declaration(self, decl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ commit: d8086f14
|
|||
|
||||
transpile Summary:
|
||||
AST Parsed : 20/20 (100.00%)
|
||||
Positive Passed: 8/20 (40.00%)
|
||||
Positive Passed: 9/20 (45.00%)
|
||||
Mismatch: "declarationAsyncAndGeneratorFunctions.ts"
|
||||
Mismatch: "declarationBasicSyntax.ts"
|
||||
Mismatch: "declarationComputedPropertyNames.ts"
|
||||
|
|
@ -14,4 +14,3 @@ Mismatch: "declarationPartialNodeReuseTypeOf.ts"
|
|||
Mismatch: "declarationRestParameters.ts"
|
||||
Mismatch: "declarationSingleFileHasErrors.ts"
|
||||
Mismatch: "declarationSingleFileHasErrorsReported.ts"
|
||||
Mismatch: "declarationsSimple.ts"
|
||||
|
|
|
|||
Loading…
Reference in a new issue