diff --git a/crates/oxc_semantic/src/post_transform_checker.rs b/crates/oxc_semantic/src/post_transform_checker.rs index a17da1151b9625..46cec1b4a4a174 100644 --- a/crates/oxc_semantic/src/post_transform_checker.rs +++ b/crates/oxc_semantic/src/post_transform_checker.rs @@ -418,7 +418,6 @@ impl<'s> PostTransformChecker<'s> { return; } - // Check whether symbols match for symbol_ids in self .after_transform .ids @@ -467,6 +466,20 @@ impl<'s> PostTransformChecker<'s> { reference_ids, ); } + + // Check redeclarations match + let redeclaration_spans = self.get_pair(symbol_ids, |data, symbol_id| { + let mut spans = data.symbols.get_redeclarations(symbol_id).to_vec(); + spans.sort_unstable(); + spans + }); + if redeclaration_spans.is_mismatch() { + self.errors.push_mismatch( + "Symbol redeclarations mismatch", + symbol_ids, + redeclaration_spans, + ); + } } } diff --git a/tasks/coverage/semantic_babel.snap b/tasks/coverage/semantic_babel.snap index 5179ccc740e276..95bf10f9ea9bfa 100644 --- a/tasks/coverage/semantic_babel.snap +++ b/tasks/coverage/semantic_babel.snap @@ -1431,6 +1431,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Class | Interface) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 21, end: 22 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-const-type/input.ts semantic error: Scope children mismatch: @@ -1439,6 +1442,9 @@ rebuilt : ScopeId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 19, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-constenum/input.ts semantic error: Scope flags mismatch: @@ -1450,6 +1456,9 @@ rebuilt : ScopeId(2): ScopeFlags(StrictMode | Function) Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(ConstEnum) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 29, end: 32 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-enum/input.ts semantic error: Scope flags mismatch: @@ -1461,6 +1470,9 @@ rebuilt : ScopeId(2): ScopeFlags(StrictMode | Function) Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(RegularEnum) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 17, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-interface/input.ts semantic error: Scope children mismatch: @@ -1469,6 +1481,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | Interface) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 26, end: 27 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-type/input.ts semantic error: Scope children mismatch: @@ -1477,6 +1492,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | TypeAlias) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 21, end: 22 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-ambient-class/input.ts semantic error: Bindings mismatch: @@ -1500,6 +1518,9 @@ rebuilt : SymbolId(1): Span { start: 104, end: 124 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 104, end: 124 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | Import) rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable) @@ -1509,6 +1530,9 @@ rebuilt : SymbolId(2): Span { start: 156, end: 160 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(2)] rebuilt : SymbolId(2): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 156, end: 160 }] +rebuilt : SymbolId(2): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(BlockScopedVariable | Import) rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable) @@ -1518,6 +1542,9 @@ rebuilt : SymbolId(3): Span { start: 170, end: 174 } Symbol reference IDs mismatch: after transform: SymbolId(3): [ReferenceId(3)] rebuilt : SymbolId(3): [] +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 170, end: 174 }] +rebuilt : SymbolId(3): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-type-let/input.ts semantic error: Symbol flags mismatch: @@ -1529,6 +1556,9 @@ rebuilt : SymbolId(1): Span { start: 119, end: 139 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 119, end: 139 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | TypeImport) rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable) @@ -1538,6 +1568,9 @@ rebuilt : SymbolId(2): Span { start: 171, end: 175 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(2)] rebuilt : SymbolId(2): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 171, end: 175 }] +rebuilt : SymbolId(2): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(BlockScopedVariable | TypeImport) rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable) @@ -1547,6 +1580,9 @@ rebuilt : SymbolId(3): Span { start: 185, end: 189 } Symbol reference IDs mismatch: after transform: SymbolId(3): [ReferenceId(3)] rebuilt : SymbolId(3): [] +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 185, end: 189 }] +rebuilt : SymbolId(3): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-type-type/input.ts semantic error: Bindings mismatch: @@ -1566,6 +1602,9 @@ rebuilt : SymbolId(1): Span { start: 119, end: 139 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 119, end: 139 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable | TypeImport) rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable) @@ -1575,6 +1614,9 @@ rebuilt : SymbolId(2): Span { start: 171, end: 175 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(2)] rebuilt : SymbolId(2): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 171, end: 175 }] +rebuilt : SymbolId(2): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable | TypeImport) rebuilt : SymbolId(3): SymbolFlags(FunctionScopedVariable) @@ -1584,6 +1626,9 @@ rebuilt : SymbolId(3): Span { start: 185, end: 189 } Symbol reference IDs mismatch: after transform: SymbolId(3): [ReferenceId(3)] rebuilt : SymbolId(3): [] +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 185, end: 189 }] +rebuilt : SymbolId(3): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-var/input.ts semantic error: Symbol flags mismatch: @@ -1595,6 +1640,9 @@ rebuilt : SymbolId(1): Span { start: 104, end: 124 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 104, end: 124 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable | Import) rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable) @@ -1604,6 +1652,9 @@ rebuilt : SymbolId(2): Span { start: 156, end: 160 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(2)] rebuilt : SymbolId(2): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 156, end: 160 }] +rebuilt : SymbolId(2): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable | Import) rebuilt : SymbolId(3): SymbolFlags(FunctionScopedVariable) @@ -1613,6 +1664,9 @@ rebuilt : SymbolId(3): Span { start: 170, end: 174 } Symbol reference IDs mismatch: after transform: SymbolId(3): [ReferenceId(3)] rebuilt : SymbolId(3): [] +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 170, end: 174 }] +rebuilt : SymbolId(3): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-in-different-module/input.ts semantic error: Bindings mismatch: @@ -1651,6 +1705,9 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 11 } rebuilt : SymbolId(0): Span { start: 21, end: 22 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 21, end: 22 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-function/input.ts semantic error: Scope children mismatch: @@ -1662,6 +1719,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 11 } rebuilt : SymbolId(0): Span { start: 24, end: 25 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 24, end: 25 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-interface/input.ts semantic error: Bindings mismatch: @@ -1681,6 +1741,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 11 } rebuilt : SymbolId(0): Span { start: 19, end: 20 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 19, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-var/input.ts semantic error: Scope children mismatch: @@ -1692,6 +1755,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 11 } rebuilt : SymbolId(0): Span { start: 19, end: 20 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 19, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-interface/input.ts semantic error: Scope children mismatch: @@ -1700,6 +1766,9 @@ rebuilt : ScopeId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Interface) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 17, end: 18 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-type/input.ts semantic error: Scope children mismatch: @@ -1708,6 +1777,9 @@ rebuilt : ScopeId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | TypeAlias) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 17, end: 18 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-function/input.ts semantic error: Scope children mismatch: @@ -1719,6 +1791,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function) Symbol span mismatch: after transform: SymbolId(0): Span { start: 5, end: 6 } rebuilt : SymbolId(0): Span { start: 26, end: 27 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 26, end: 27 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-let/input.ts semantic error: Scope children mismatch: @@ -1730,6 +1805,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 5, end: 6 } rebuilt : SymbolId(0): Span { start: 21, end: 22 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 21, end: 22 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-var/input.ts semantic error: Scope children mismatch: @@ -1741,6 +1819,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 5, end: 6 } rebuilt : SymbolId(0): Span { start: 21, end: 22 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 21, end: 22 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-interface/input.ts semantic error: Scope children mismatch: @@ -1749,6 +1830,9 @@ rebuilt : ScopeId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | Interface) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 17, end: 18 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-type/input.ts semantic error: Scope children mismatch: @@ -1757,6 +1841,9 @@ rebuilt : ScopeId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | TypeAlias) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 17, end: 18 }] +rebuilt : SymbolId(0): [] tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/tsx/anonymous-function-generator/input.ts semantic error: Bindings mismatch: diff --git a/tasks/coverage/semantic_typescript.snap b/tasks/coverage/semantic_typescript.snap index 7418428451b7ee..e5efd01c9c402c 100644 --- a/tasks/coverage/semantic_typescript.snap +++ b/tasks/coverage/semantic_typescript.snap @@ -868,6 +868,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(1): SymbolFlags(Class | NameSpaceModule) rebuilt : SymbolId(1): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 55, end: 57 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/augmentedTypesModules3b.ts semantic error: Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript @@ -894,6 +897,9 @@ rebuilt : ScopeId(2): ScopeFlags(Function) Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(RegularEnum) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 29, end: 32 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/avoidCycleWithVoidExpressionReturnedFromArrow.ts semantic error: Bindings mismatch: @@ -2921,6 +2927,9 @@ rebuilt : SymbolId(2): Span { start: 551, end: 569 } Symbol reference IDs mismatch: after transform: SymbolId(11): [ReferenceId(13), ReferenceId(14), ReferenceId(15)] rebuilt : SymbolId(2): [ReferenceId(4)] +Symbol redeclarations mismatch: +after transform: SymbolId(11): [Span { start: 551, end: 569 }] +rebuilt : SymbolId(2): [] tasks/coverage/typescript/tests/cases/compiler/contextualExpressionTypecheckingDoesntBlowStack.ts semantic error: Bindings mismatch: @@ -3853,6 +3862,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Symbol span mismatch: after transform: SymbolId(0): Span { start: 5, end: 8 } rebuilt : SymbolId(0): Span { start: 32, end: 35 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 32, end: 35 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/defaultNamedExportWithType2.ts semantic error: Scope children mismatch: @@ -3864,6 +3876,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Symbol span mismatch: after transform: SymbolId(0): Span { start: 5, end: 8 } rebuilt : SymbolId(0): Span { start: 25, end: 28 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 25, end: 28 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/defaultNamedExportWithType3.ts semantic error: Scope children mismatch: @@ -3875,6 +3890,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 13 } rebuilt : SymbolId(0): Span { start: 30, end: 33 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 30, end: 33 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/defaultNamedExportWithType4.ts semantic error: Scope children mismatch: @@ -3886,6 +3904,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 13 } rebuilt : SymbolId(0): Span { start: 23, end: 26 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 23, end: 26 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/deferredConditionalTypes.ts semantic error: Bindings mismatch: @@ -5148,6 +5169,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 7, end: 8 } rebuilt : SymbolId(0): Span { start: 19, end: 20 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 19, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/errorConstructorSubtypes.ts semantic error: Bindings mismatch: @@ -7148,6 +7172,9 @@ rebuilt : SymbolId(1): Span { start: 152, end: 158 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(3)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 152, end: 158 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/exportAssignedTypeAsTypeAnnotation.ts semantic error: `export = ;` is only supported when compiling modules to CommonJS. @@ -7282,6 +7309,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Class | NameSpaceModule) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 121, end: 122 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/exportDefaultVariable.ts semantic error: Bindings mismatch: @@ -7308,6 +7338,9 @@ rebuilt : SymbolId(1): Span { start: 149, end: 155 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(1), ReferenceId(4)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 77, end: 83 }, Span { start: 149, end: 155 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/exportEqualsClassNoRedeclarationError.ts semantic error: Symbol reference IDs mismatch: @@ -7365,6 +7398,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable | Export) Symbol span mismatch: after transform: SymbolId(0): Span { start: 12, end: 15 } rebuilt : SymbolId(0): Span { start: 73, end: 76 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 73, end: 76 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts semantic error: Bindings mismatch: @@ -7858,6 +7894,9 @@ rebuilt : SymbolId(0): Span { start: 26, end: 27 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)] rebuilt : SymbolId(0): [ReferenceId(0)] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 26, end: 27 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts semantic error: Bindings mismatch: @@ -8978,6 +9017,9 @@ rebuilt : SymbolId(4): Span { start: 724, end: 731 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0), ReferenceId(111)] rebuilt : SymbolId(4): [ReferenceId(3)] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 724, end: 731 }] +rebuilt : SymbolId(4): [] tasks/coverage/typescript/tests/cases/compiler/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.ts semantic error: Semantic Collector failed after transform @@ -9290,6 +9332,9 @@ rebuilt : SymbolId(0): Span { start: 52, end: 62 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0), ReferenceId(3)] rebuilt : SymbolId(0): [ReferenceId(2)] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 52, end: 62 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/importHelpers.ts semantic error: Bindings mismatch: @@ -10740,6 +10785,9 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 13 } rebuilt : SymbolId(0): Span { start: 149, end: 152 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 149, end: 152 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/interfaceClassMerging2.ts semantic error: Scope children mismatch: @@ -10751,12 +10799,18 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(0): Span { start: 10, end: 13 } rebuilt : SymbolId(0): Span { start: 89, end: 92 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 89, end: 92 }] +rebuilt : SymbolId(0): [] Symbol flags mismatch: after transform: SymbolId(1): SymbolFlags(Class | Interface) rebuilt : SymbolId(1): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(1): Span { start: 194, end: 197 } rebuilt : SymbolId(1): Span { start: 273, end: 276 } +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 273, end: 276 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/interfaceContextualType.ts semantic error: Bindings mismatch: @@ -10779,18 +10833,27 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(1): Span { start: 42, end: 44 } rebuilt : SymbolId(0): Span { start: 55, end: 57 } +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 55, end: 57 }] +rebuilt : SymbolId(0): [] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable | Interface) rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(2): Span { start: 73, end: 75 } rebuilt : SymbolId(1): Span { start: 89, end: 91 } +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 89, end: 91 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable | Interface) rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(3): Span { start: 109, end: 111 } rebuilt : SymbolId(2): Span { start: 120, end: 129 } +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 120, end: 129 }] +rebuilt : SymbolId(2): [] tasks/coverage/typescript/tests/cases/compiler/interfaceDeclaration5.ts semantic error: Bindings mismatch: @@ -10884,6 +10947,9 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0)] rebuilt : SymbolId(0): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 38, end: 39 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/internalImportUnInstantiatedModuleNotReferencingInstanceNoConflict.ts semantic error: Semantic Collector failed after transform @@ -11417,6 +11483,9 @@ rebuilt : ScopeId(0): [ScopeId(1), ScopeId(3)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Export | Class | NameSpaceModule) rebuilt : SymbolId(1): SymbolFlags(Export | Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 106, end: 107 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/jsxMultilineAttributeValuesReact.tsx semantic error: Bindings mismatch: @@ -11984,6 +12053,9 @@ rebuilt : ScopeId(2): ScopeFlags(Function) Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(RegularEnum) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 33, end: 34 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/mergedInstantiationAssignment.ts semantic error: Bindings mismatch: @@ -12608,6 +12680,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Class | NameSpaceModule) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 19, end: 20 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/moduleReopenedTypeOtherBlock.ts semantic error: Semantic Collector failed after transform @@ -13634,6 +13709,9 @@ rebuilt : SymbolId(1): SymbolFlags(Class) Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 61, end: 64 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInFunction.ts semantic error: Scope children mismatch: @@ -14629,6 +14707,9 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(0): Span { start: 15, end: 18 } rebuilt : SymbolId(0): Span { start: 59, end: 62 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 59, end: 62 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/partiallyAmbientFundule.ts semantic error: Scope children mismatch: @@ -14640,6 +14721,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 15, end: 18 } rebuilt : SymbolId(0): Span { start: 62, end: 65 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 62, end: 65 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/partiallyDiscriminantedUnions.ts semantic error: Bindings mismatch: @@ -16885,6 +16969,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Symbol span mismatch: after transform: SymbolId(0): Span { start: 12, end: 18 } rebuilt : SymbolId(0): Span { start: 39, end: 45 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 39, end: 45 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/relatedViaDiscriminatedTypeNoError.ts semantic error: Bindings mismatch: @@ -17061,6 +17148,9 @@ rebuilt : SymbolId(0): Span { start: 22, end: 30 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0)] rebuilt : SymbolId(0): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 22, end: 30 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/resolveInterfaceNameWithSameLetDeclarationName2.ts semantic error: Scope children mismatch: @@ -17075,6 +17165,9 @@ rebuilt : SymbolId(0): Span { start: 40, end: 54 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(0), ReferenceId(2)] rebuilt : SymbolId(0): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 40, end: 54 }] +rebuilt : SymbolId(0): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Interface) rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable) @@ -17084,6 +17177,9 @@ rebuilt : SymbolId(1): Span { start: 60, end: 74 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(1), ReferenceId(3)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 60, end: 74 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/resolveModuleNameWithSameLetDeclarationName1.ts semantic error: Scope children mismatch: @@ -17095,6 +17191,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 15, end: 18 } rebuilt : SymbolId(0): Span { start: 56, end: 68 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 56, end: 68 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/resolveModuleNameWithSameLetDeclarationName2.ts semantic error: Bindings mismatch: @@ -17114,6 +17213,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 44, end: 52 } rebuilt : SymbolId(0): Span { start: 91, end: 99 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 91, end: 99 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/resolveTypeAliasWithSameLetDeclarationName1.ts semantic error: Scope children mismatch: @@ -17131,6 +17233,9 @@ rebuilt : SymbolId(1): Span { start: 30, end: 38 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(1)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 30, end: 38 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/restParamUsingMappedTypeOverUnionConstraint.ts semantic error: Bindings mismatch: @@ -19484,6 +19589,9 @@ rebuilt : ScopeId(0): [ScopeId(1), ScopeId(3)] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Class | Interface) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 31, end: 32 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/superWithGenericSpecialization.ts semantic error: Bindings mismatch: @@ -19521,6 +19629,9 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable) Symbol span mismatch: after transform: SymbolId(0): Span { start: 9, end: 10 } rebuilt : SymbolId(0): Span { start: 35, end: 36 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 35, end: 36 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/systemExportAssignment.ts semantic error: Bindings mismatch: @@ -19922,6 +20033,9 @@ rebuilt : ScopeId(0): [ScopeId(1), ScopeId(2)] Symbol flags mismatch: after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | Function | NameSpaceModule | ValueModule) rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable | Function) +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 243, end: 256 }] +rebuilt : SymbolId(1): [] Symbol reference IDs mismatch: after transform: SymbolId(8): [ReferenceId(5), ReferenceId(6), ReferenceId(8)] rebuilt : SymbolId(5): [ReferenceId(2)] @@ -20119,6 +20233,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(3), ReferenceId(6)] rebuilt : SymbolId(0): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 152, end: 157 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/typeAnnotationBestCommonTypeInArrayLiteral.ts semantic error: Bindings mismatch: @@ -20474,6 +20591,9 @@ rebuilt : SymbolId(1): Span { start: 29, end: 33 } Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(1), ReferenceId(2), ReferenceId(3)] rebuilt : SymbolId(1): [ReferenceId(0)] +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 29, end: 33 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/typeParameterAsElementType.ts semantic error: Bindings mismatch: @@ -20878,6 +20998,9 @@ rebuilt : SymbolId(0): Span { start: 35, end: 38 } Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)] rebuilt : SymbolId(0): [ReferenceId(0)] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 35, end: 38 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/compiler/typeVariableConstraintIntersections.ts semantic error: Bindings mismatch: @@ -20973,6 +21096,9 @@ rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) Symbol reference IDs mismatch: after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)] rebuilt : SymbolId(0): [] +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 32, end: 33 }] +rebuilt : SymbolId(0): [] Symbol reference IDs mismatch: after transform: SymbolId(1): [ReferenceId(2)] rebuilt : SymbolId(1): [] @@ -21568,9 +21694,15 @@ rebuilt : ScopeId(2): [] Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Class | Interface) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 46, end: 48 }] +rebuilt : SymbolId(0): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(Class | Interface) rebuilt : SymbolId(1): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 116, end: 118 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/compiler/unusedTypeParametersNotCheckedByNoUnusedLocals.ts semantic error: Bindings mismatch: @@ -23034,12 +23166,18 @@ rebuilt : SymbolId(1): Span { start: 213, end: 218 } Symbol reference IDs mismatch: after transform: SymbolId(2): [ReferenceId(4)] rebuilt : SymbolId(1): [] +Symbol redeclarations mismatch: +after transform: SymbolId(2): [Span { start: 213, end: 218 }] +rebuilt : SymbolId(1): [] Symbol flags mismatch: after transform: SymbolId(3): SymbolFlags(Class | Interface) rebuilt : SymbolId(2): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(3): Span { start: 294, end: 310 } rebuilt : SymbolId(2): Span { start: 368, end: 384 } +Symbol redeclarations mismatch: +after transform: SymbolId(3): [Span { start: 368, end: 384 }] +rebuilt : SymbolId(2): [] Symbol reference IDs mismatch: after transform: SymbolId(4): [ReferenceId(12)] rebuilt : SymbolId(3): [] @@ -23258,6 +23396,9 @@ rebuilt : ScopeId(0): [ScopeId(1)] Symbol flags mismatch: after transform: SymbolId(1): SymbolFlags(Class | Interface) rebuilt : SymbolId(0): SymbolFlags(Class) +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 185, end: 186 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/conformance/classes/members/privateNames/privateNameFieldDestructuredBinding.ts semantic error: Symbol reference IDs mismatch: @@ -23315,6 +23456,9 @@ rebuilt : SymbolId(0): SymbolFlags(Class) Symbol span mismatch: after transform: SymbolId(1): Span { start: 40, end: 41 } rebuilt : SymbolId(0): Span { start: 62, end: 63 } +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 62, end: 63 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/conformance/classes/propertyMemberDeclarations/accessorsOverrideProperty8.ts semantic error: Bindings mismatch: @@ -23349,6 +23493,9 @@ rebuilt : SymbolId(2): Span { start: 558, end: 579 } Symbol reference IDs mismatch: after transform: SymbolId(8): [ReferenceId(17), ReferenceId(19), ReferenceId(24)] rebuilt : SymbolId(2): [ReferenceId(4)] +Symbol redeclarations mismatch: +after transform: SymbolId(8): [Span { start: 558, end: 579 }] +rebuilt : SymbolId(2): [] tasks/coverage/typescript/tests/cases/conformance/classes/propertyMemberDeclarations/autoAccessorAllowedModifiers.ts semantic error: Scope children mismatch: @@ -24396,6 +24543,9 @@ rebuilt : ScopeId(3): ScopeFlags(Function) Symbol flags mismatch: after transform: SymbolId(0): SymbolFlags(Export | RegularEnum) rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export) +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 45, end: 52 }, Span { start: 78, end: 85 }] +rebuilt : SymbolId(0): [] tasks/coverage/typescript/tests/cases/conformance/enums/enumMerging.ts semantic error: Semantic Collector failed after transform @@ -27701,6 +27851,9 @@ rebuilt : SymbolId(8): Span { start: 240, end: 262 } Symbol reference IDs mismatch: after transform: SymbolId(9): [ReferenceId(1), ReferenceId(2), ReferenceId(15)] rebuilt : SymbolId(8): [ReferenceId(8)] +Symbol redeclarations mismatch: +after transform: SymbolId(9): [Span { start: 240, end: 262 }] +rebuilt : SymbolId(8): [] tasks/coverage/typescript/tests/cases/conformance/expressions/nullishCoalescingOperator/nullishCoalescingOperator1.ts semantic error: Bindings mismatch: @@ -29219,12 +29372,18 @@ rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export | Functio Symbol span mismatch: after transform: SymbolId(0): Span { start: 12, end: 13 } rebuilt : SymbolId(0): Span { start: 33, end: 34 } +Symbol redeclarations mismatch: +after transform: SymbolId(0): [Span { start: 33, end: 34 }] +rebuilt : SymbolId(0): [] Symbol flags mismatch: after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable | Export | TypeAlias) rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable | Export) Symbol span mismatch: after transform: SymbolId(1): Span { start: 67, end: 68 } rebuilt : SymbolId(1): Span { start: 83, end: 84 } +Symbol redeclarations mismatch: +after transform: SymbolId(1): [Span { start: 83, end: 84 }] +rebuilt : SymbolId(1): [] tasks/coverage/typescript/tests/cases/conformance/externalModules/umd-augmentation-1.ts semantic error: Symbol reference IDs mismatch: @@ -30198,6 +30357,9 @@ rebuilt : ScopeId(0): ["_jsxFileName", "_reactJsxRuntime", "x"] Symbol span mismatch: after transform: SymbolId(9): Span { start: 231, end: 236 } rebuilt : SymbolId(2): Span { start: 537, end: 538 } +Symbol redeclarations mismatch: +after transform: SymbolId(9): [Span { start: 537, end: 538 }] +rebuilt : SymbolId(2): [] Reference mismatch: after transform: ReferenceId(44): Some("Component") rebuilt : ReferenceId(11): None @@ -32629,6 +32791,9 @@ rebuilt : SymbolId(59): Span { start: 2256, end: 2263 } Symbol reference IDs mismatch: after transform: SymbolId(63): [ReferenceId(55), ReferenceId(58), ReferenceId(66), ReferenceId(68)] rebuilt : SymbolId(59): [ReferenceId(50), ReferenceId(54)] +Symbol redeclarations mismatch: +after transform: SymbolId(63): [Span { start: 2256, end: 2263 }] +rebuilt : SymbolId(59): [] Symbol reference IDs mismatch: after transform: SymbolId(90): [ReferenceId(97), ReferenceId(99)] rebuilt : SymbolId(76): [ReferenceId(70)] diff --git a/tasks/transform_conformance/babel.snap.md b/tasks/transform_conformance/babel.snap.md index 753d8bd5a60f4f..e500fc4032cba4 100644 --- a/tasks/transform_conformance/babel.snap.md +++ b/tasks/transform_conformance/babel.snap.md @@ -1690,6 +1690,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(0): SymbolFlags(RegularEnum) | rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 41, end: 48 }] + | rebuilt : SymbolId(0): [] + * enum/enum-merging-inner-references-shadow/input.ts x Bindings mismatch: @@ -1728,6 +1732,11 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(2): SymbolFlags(RegularEnum) | rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable) + x Symbol redeclarations mismatch: + | after transform: SymbolId(2): [Span { start: 65, end: 72 }, Span { start: + | 92, end: 99 }] + | rebuilt : SymbolId(2): [] + * enum/export/input.ts x Bindings mismatch: @@ -1750,6 +1759,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(0): SymbolFlags(Export | RegularEnum) | rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export) + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 40, end: 41 }] + | rebuilt : SymbolId(0): [] + * enum/inferred/input.ts x Bindings mismatch: @@ -1853,6 +1866,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(0): SymbolFlags(RegularEnum) | rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 40, end: 41 }] + | rebuilt : SymbolId(0): [] + * enum/outer-references/input.ts x Bindings mismatch: @@ -1991,6 +2008,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2)] | rebuilt : SymbolId(0): [ReferenceId(1)] + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 83, end: 84 }] + | rebuilt : SymbolId(0): [] + * exports/declare-shadowed/input.ts x Scope children mismatch: @@ -2037,6 +2058,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(10): SymbolFlags(Export | RegularEnum) | rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable | Export) + x Symbol redeclarations mismatch: + | after transform: SymbolId(10): [Span { start: 495, end: 497 }] + | rebuilt : SymbolId(1): [] + x Symbol flags mismatch: | after transform: SymbolId(15): SymbolFlags(Export | RegularEnum) | rebuilt : SymbolId(4): SymbolFlags(FunctionScopedVariable | Export) @@ -2324,6 +2349,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(0): Span { start: 13, end: 16 } | rebuilt : SymbolId(0): Span { start: 70, end: 73 } + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 70, end: 73 }] + | rebuilt : SymbolId(0): [] + x Symbol flags mismatch: | after transform: SymbolId(1): SymbolFlags(BlockScopedVariable | Function | | TypeImport) @@ -2333,6 +2362,10 @@ preset-env: unknown field `shippedProposals`, expected `targets` or `bugfixes` | after transform: SymbolId(1): Span { start: 43, end: 47 } | rebuilt : SymbolId(1): Span { start: 87, end: 91 } + x Symbol redeclarations mismatch: + | after transform: SymbolId(1): [Span { start: 87, end: 91 }] + | rebuilt : SymbolId(1): [] + * imports/import-type-not-removed/input.ts x Bindings mismatch: diff --git a/tasks/transform_conformance/oxc.snap.md b/tasks/transform_conformance/oxc.snap.md index 92aed64209bdcd..bfab65aa288677 100644 --- a/tasks/transform_conformance/oxc.snap.md +++ b/tasks/transform_conformance/oxc.snap.md @@ -151,10 +151,18 @@ Passed: 8/35 | after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)] | rebuilt : SymbolId(0): [ReferenceId(0)] + x Symbol redeclarations mismatch: + | after transform: SymbolId(0): [Span { start: 79, end: 83 }] + | rebuilt : SymbolId(0): [] + x Symbol flags mismatch: | after transform: SymbolId(1): SymbolFlags(Export | Import | TypeAlias) | rebuilt : SymbolId(1): SymbolFlags(Export | Import) + x Symbol redeclarations mismatch: + | after transform: SymbolId(1): [Span { start: 170, end: 171 }] + | rebuilt : SymbolId(1): [] + x Symbol flags mismatch: | after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | | ConstVariable | Export | Import | TypeAlias) @@ -169,6 +177,11 @@ Passed: 8/35 | after transform: SymbolId(2): [ReferenceId(3), ReferenceId(4)] | rebuilt : SymbolId(2): [ReferenceId(2)] + x Symbol redeclarations mismatch: + | after transform: SymbolId(2): [Span { start: 289, end: 293 }, Span + | { start: 304, end: 305 }] + | rebuilt : SymbolId(2): [] + # babel-plugin-transform-react-jsx (6/27)