mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
test(transformer): transform checker output symbol name for mismatches (#6286)
Transform checker include symbol names in output for symbol mismatches. This is rather more helpful for locating bugs than just `SymbolId(3)`.
This commit is contained in:
parent
d953a6be02
commit
0f5afd7ede
7 changed files with 18038 additions and 18007 deletions
|
|
@ -125,8 +125,12 @@ pub fn check_semantic_after_transform(
|
|||
// Collect `ScopeId`s, `SymbolId`s and `ReferenceId`s from AST after transformer
|
||||
let scoping_after_transform =
|
||||
Scoping { symbols: symbols_after_transform, scopes: scopes_after_transform };
|
||||
let (scope_ids_after_transform, symbol_ids_after_transform, reference_ids_after_transform) =
|
||||
SemanticIdsCollector::new(&mut errors).collect(program);
|
||||
let (
|
||||
scope_ids_after_transform,
|
||||
symbol_ids_after_transform,
|
||||
reference_ids_after_transform,
|
||||
reference_names,
|
||||
) = SemanticIdsCollector::new(&mut errors).collect(program);
|
||||
|
||||
// Clone the post-transform AST, re-run semantic analysis on it, and collect `ScopeId`s,
|
||||
// `SymbolId`s and `ReferenceId`s from AST.
|
||||
|
|
@ -141,7 +145,7 @@ pub fn check_semantic_after_transform(
|
|||
.into_symbol_table_and_scope_tree();
|
||||
let scoping_rebuilt = Scoping { symbols: &symbols_rebuilt, scopes: &scopes_rebuilt };
|
||||
|
||||
let (scope_ids_rebuilt, symbol_ids_rebuilt, reference_ids_rebuilt) =
|
||||
let (scope_ids_rebuilt, symbol_ids_rebuilt, reference_ids_rebuilt, _) =
|
||||
SemanticIdsCollector::new(&mut errors).collect(&program);
|
||||
|
||||
// Create mappings from after transform IDs to rebuilt IDs
|
||||
|
|
@ -156,6 +160,7 @@ pub fn check_semantic_after_transform(
|
|||
scope_ids_map,
|
||||
symbol_ids_map,
|
||||
reference_ids_map,
|
||||
reference_names,
|
||||
errors,
|
||||
};
|
||||
checker.check_scopes();
|
||||
|
|
@ -173,13 +178,14 @@ pub fn check_semantic_ids(program: &Program<'_>) -> Option<Vec<OxcDiagnostic>> {
|
|||
errors.get()
|
||||
}
|
||||
|
||||
struct PostTransformChecker<'s> {
|
||||
struct PostTransformChecker<'a, 's> {
|
||||
scoping_after_transform: Scoping<'s>,
|
||||
scoping_rebuilt: Scoping<'s>,
|
||||
// Mappings from after transform ID to rebuilt ID
|
||||
scope_ids_map: IdMapping<ScopeId>,
|
||||
symbol_ids_map: IdMapping<SymbolId>,
|
||||
reference_ids_map: IdMapping<ReferenceId>,
|
||||
reference_names: Vec<Atom<'a>>,
|
||||
errors: Errors,
|
||||
}
|
||||
|
||||
|
|
@ -327,7 +333,7 @@ rebuilt : {value_rebuilt}
|
|||
}
|
||||
}
|
||||
|
||||
impl<'s> PostTransformChecker<'s> {
|
||||
impl<'a, 's> PostTransformChecker<'a, 's> {
|
||||
fn check_scopes(&mut self) {
|
||||
for scope_ids in self.scope_ids_map.pairs() {
|
||||
// Check bindings are the same
|
||||
|
|
@ -393,28 +399,30 @@ impl<'s> PostTransformChecker<'s> {
|
|||
scoping.symbols.names[symbol_id].clone()
|
||||
});
|
||||
if names.is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol name mismatch", symbol_ids, names);
|
||||
self.errors.push_mismatch("Symbol name mismatch", symbol_ids, &names);
|
||||
}
|
||||
let symbol_name = names.rebuilt.as_str();
|
||||
let mismatch_title = |field| format!("Symbol {field} mismatch for {symbol_name:?}");
|
||||
|
||||
// Check flags match
|
||||
let flags =
|
||||
self.get_pair(symbol_ids, |scoping, symbol_id| scoping.symbols.flags[symbol_id]);
|
||||
if flags.is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol flags mismatch", symbol_ids, flags);
|
||||
self.errors.push_mismatch(&mismatch_title("flags"), symbol_ids, flags);
|
||||
}
|
||||
|
||||
// Check spans match
|
||||
let spans =
|
||||
self.get_pair(symbol_ids, |scoping, symbol_id| scoping.symbols.spans[symbol_id]);
|
||||
if spans.is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol span mismatch", symbol_ids, spans);
|
||||
self.errors.push_mismatch(&mismatch_title("span"), symbol_ids, spans);
|
||||
}
|
||||
|
||||
// Check scope IDs match
|
||||
let scope_ids = self
|
||||
.get_pair(symbol_ids, |scoping, symbol_id| scoping.symbols.scope_ids[symbol_id]);
|
||||
if self.remap_scope_ids(scope_ids).is_mismatch() {
|
||||
self.errors.push_mismatch("Symbol scope ID mismatch", symbol_ids, scope_ids);
|
||||
self.errors.push_mismatch(&mismatch_title("scope ID"), symbol_ids, scope_ids);
|
||||
}
|
||||
|
||||
// NB: Skip checking declarations match - transformer does not set `NodeId`s
|
||||
|
|
@ -425,7 +433,7 @@ impl<'s> PostTransformChecker<'s> {
|
|||
});
|
||||
if self.remap_reference_ids_sets(&reference_ids).is_mismatch() {
|
||||
self.errors.push_mismatch(
|
||||
"Symbol reference IDs mismatch",
|
||||
&mismatch_title("reference IDs"),
|
||||
symbol_ids,
|
||||
reference_ids,
|
||||
);
|
||||
|
|
@ -439,7 +447,7 @@ impl<'s> PostTransformChecker<'s> {
|
|||
});
|
||||
if redeclaration_spans.is_mismatch() {
|
||||
self.errors.push_mismatch(
|
||||
"Symbol redeclarations mismatch",
|
||||
&mismatch_title("redeclarations"),
|
||||
symbol_ids,
|
||||
redeclaration_spans,
|
||||
);
|
||||
|
|
@ -448,7 +456,7 @@ impl<'s> PostTransformChecker<'s> {
|
|||
}
|
||||
|
||||
fn check_references(&mut self) {
|
||||
for reference_ids in self.reference_ids_map.pairs() {
|
||||
for (reference_ids, name) in self.reference_ids_map.pairs().zip(&self.reference_names) {
|
||||
// Check symbol IDs match
|
||||
let symbol_ids = self.get_pair(reference_ids, |scoping, reference_id| {
|
||||
scoping.symbols.references[reference_id].symbol_id()
|
||||
|
|
@ -458,10 +466,19 @@ impl<'s> PostTransformChecker<'s> {
|
|||
symbol_ids.rebuilt.map(Option::Some),
|
||||
);
|
||||
if symbol_ids_remapped.is_mismatch() {
|
||||
let symbol_names = self.get_pair(symbol_ids, |scoping, symbol_id| {
|
||||
symbol_id.map(|symbol_id| scoping.symbols.names[symbol_id].clone())
|
||||
let mismatch_strs = self.get_pair(reference_ids, |scoping, reference_id| {
|
||||
match scoping.symbols.references[reference_id].symbol_id() {
|
||||
Some(symbol_id) => {
|
||||
let symbol_name = &scoping.symbols.names[symbol_id];
|
||||
format!("{symbol_id:?} {symbol_name:?}")
|
||||
}
|
||||
None => "<None>".to_string(),
|
||||
}
|
||||
});
|
||||
self.errors.push_mismatch("Reference symbol mismatch", reference_ids, symbol_names);
|
||||
self.errors.push_mismatch_strs(
|
||||
&format!("Reference symbol mismatch for {name:?}"),
|
||||
mismatch_strs,
|
||||
);
|
||||
}
|
||||
|
||||
// Check flags match
|
||||
|
|
@ -469,7 +486,11 @@ impl<'s> PostTransformChecker<'s> {
|
|||
scoping.symbols.references[reference_id].flags()
|
||||
});
|
||||
if flags.is_mismatch() {
|
||||
self.errors.push_mismatch("Reference flags mismatch", reference_ids, flags);
|
||||
self.errors.push_mismatch(
|
||||
&format!("Reference flags mismatch for {name:?}"),
|
||||
reference_ids,
|
||||
flags,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -590,32 +611,40 @@ impl<'s> PostTransformChecker<'s> {
|
|||
/// Collector of `ScopeId`s, `SymbolId`s and `ReferenceId`s from an AST.
|
||||
///
|
||||
/// `scope_ids`, `symbol_ids` and `reference_ids` lists are filled in visitation order.
|
||||
struct SemanticIdsCollector<'e> {
|
||||
struct SemanticIdsCollector<'a, 'e> {
|
||||
scope_ids: Vec<Option<ScopeId>>,
|
||||
symbol_ids: Vec<Option<SymbolId>>,
|
||||
reference_ids: Vec<Option<ReferenceId>>,
|
||||
reference_names: Vec<Atom<'a>>,
|
||||
errors: &'e mut Errors,
|
||||
}
|
||||
|
||||
impl<'e> SemanticIdsCollector<'e> {
|
||||
impl<'a, 'e> SemanticIdsCollector<'a, 'e> {
|
||||
fn new(errors: &'e mut Errors) -> Self {
|
||||
Self { scope_ids: vec![], symbol_ids: vec![], reference_ids: vec![], errors }
|
||||
Self {
|
||||
scope_ids: vec![],
|
||||
symbol_ids: vec![],
|
||||
reference_ids: vec![],
|
||||
reference_names: vec![],
|
||||
errors,
|
||||
}
|
||||
}
|
||||
|
||||
/// Collect IDs and check for errors
|
||||
#[allow(clippy::type_complexity)]
|
||||
fn collect(
|
||||
mut self,
|
||||
program: &Program<'_>,
|
||||
) -> (Vec<Option<ScopeId>>, Vec<Option<SymbolId>>, Vec<Option<ReferenceId>>) {
|
||||
program: &Program<'a>,
|
||||
) -> (Vec<Option<ScopeId>>, Vec<Option<SymbolId>>, Vec<Option<ReferenceId>>, Vec<Atom<'a>>)
|
||||
{
|
||||
if !program.source_type.is_typescript_definition() {
|
||||
self.visit_program(program);
|
||||
}
|
||||
(self.scope_ids, self.symbol_ids, self.reference_ids)
|
||||
(self.scope_ids, self.symbol_ids, self.reference_ids, self.reference_names)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'e> Visit<'a> for SemanticIdsCollector<'e> {
|
||||
impl<'a, 'e> Visit<'a> for SemanticIdsCollector<'a, 'e> {
|
||||
fn enter_scope(&mut self, _flags: ScopeFlags, scope_id: &Cell<Option<ScopeId>>) {
|
||||
let scope_id = scope_id.get();
|
||||
self.scope_ids.push(scope_id);
|
||||
|
|
@ -627,8 +656,10 @@ impl<'a, 'e> Visit<'a> for SemanticIdsCollector<'e> {
|
|||
fn visit_identifier_reference(&mut self, ident: &IdentifierReference<'a>) {
|
||||
let reference_id = ident.reference_id.get();
|
||||
self.reference_ids.push(reference_id);
|
||||
if reference_id.is_none() {
|
||||
self.errors.push(format!("Missing ReferenceId: {}", ident.name));
|
||||
if reference_id.is_some() {
|
||||
self.reference_names.push(ident.name.clone());
|
||||
} else {
|
||||
self.errors.push(format!("Missing ReferenceId: {:?}", ident.name));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -636,7 +667,7 @@ impl<'a, 'e> Visit<'a> for SemanticIdsCollector<'e> {
|
|||
let symbol_id = ident.symbol_id.get();
|
||||
self.symbol_ids.push(symbol_id);
|
||||
if symbol_id.is_none() {
|
||||
self.errors.push(format!("Missing SymbolId: {}", ident.name));
|
||||
self.errors.push(format!("Missing SymbolId: {:?}", ident.name));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ semantic_babel Summary:
|
|||
AST Parsed : 2101/2101 (100.00%)
|
||||
Positive Passed: 1739/2101 (82.77%)
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/annex-b/enabled/3.3-function-in-if-body/input.js
|
||||
semantic error: Symbol scope ID mismatch:
|
||||
semantic error: Symbol scope ID mismatch for "f":
|
||||
after transform: SymbolId(0): ScopeId(4294967294)
|
||||
rebuilt : SymbolId(0): ScopeId(4294967294)
|
||||
Symbol scope ID mismatch:
|
||||
Symbol scope ID mismatch for "g":
|
||||
after transform: SymbolId(1): ScopeId(4294967294)
|
||||
rebuilt : SymbolId(1): ScopeId(4294967294)
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ semantic error: Unexpected new.target expression
|
|||
Unexpected new.target expression
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/core/scope/dupl-bind-catch-hang-func/input.js
|
||||
semantic error: Symbol scope ID mismatch:
|
||||
semantic error: Symbol scope ID mismatch for "foo":
|
||||
after transform: SymbolId(1): ScopeId(4294967294)
|
||||
rebuilt : SymbolId(1): ScopeId(4294967294)
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ after transform: ScopeId(0): ["nil"]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/esprima/statement-if/migrated_0003/input.js
|
||||
semantic error: Symbol scope ID mismatch:
|
||||
semantic error: Symbol scope ID mismatch for "a":
|
||||
after transform: SymbolId(0): ScopeId(4294967294)
|
||||
rebuilt : SymbolId(0): ScopeId(4294967294)
|
||||
|
||||
|
|
@ -223,7 +223,7 @@ after transform: ["asserts"]
|
|||
rebuilt : []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/assert-predicate/asserts-this-with-predicate/input.ts
|
||||
semantic error: Symbol reference IDs mismatch:
|
||||
semantic error: Symbol reference IDs mismatch for "Foo":
|
||||
after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -246,10 +246,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/assign/TSTyp
|
|||
semantic error: Bindings mismatch:
|
||||
after transform: ScopeId(1): ["M"]
|
||||
rebuilt : ScopeId(1): []
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "AbstractClass":
|
||||
after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(3)]
|
||||
rebuilt : SymbolId(0): [ReferenceId(0)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "ConcreteClass":
|
||||
after transform: SymbolId(2): [ReferenceId(4), ReferenceId(6)]
|
||||
rebuilt : SymbolId(1): [ReferenceId(1)]
|
||||
|
||||
|
|
@ -257,10 +257,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/assign/TSTyp
|
|||
semantic error: Bindings mismatch:
|
||||
after transform: ScopeId(1): ["M"]
|
||||
rebuilt : ScopeId(1): []
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "AbstractClass":
|
||||
after transform: SymbolId(0): [ReferenceId(0), ReferenceId(2), ReferenceId(3)]
|
||||
rebuilt : SymbolId(0): [ReferenceId(0)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "ConcreteClass":
|
||||
after transform: SymbolId(2): [ReferenceId(4), ReferenceId(6)]
|
||||
rebuilt : SymbolId(1): [ReferenceId(1)]
|
||||
|
||||
|
|
@ -634,7 +634,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/enum/const/i
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(ConstEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -666,7 +666,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/enum/export/
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(Export | RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export)
|
||||
|
||||
|
|
@ -674,7 +674,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/enum/export-
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(Export | ConstEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export)
|
||||
|
||||
|
|
@ -693,7 +693,7 @@ rebuilt : ScopeId(1): ["E"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -704,7 +704,7 @@ rebuilt : ScopeId(1): ["E"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -715,7 +715,7 @@ rebuilt : ScopeId(1): ["E"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -726,7 +726,7 @@ rebuilt : ScopeId(1): ["E"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -737,7 +737,7 @@ rebuilt : ScopeId(1): ["E"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -791,23 +791,23 @@ rebuilt : ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(3)]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(3): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(3): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "D":
|
||||
after transform: SymbolId(3): SymbolFlags(Export | RegularEnum)
|
||||
rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | Export)
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.ts
|
||||
semantic error: Missing SymbolId: N
|
||||
Missing SymbolId: _N
|
||||
Missing ReferenceId: _N
|
||||
Missing ReferenceId: N
|
||||
Missing ReferenceId: N
|
||||
semantic error: Missing SymbolId: "N"
|
||||
Missing SymbolId: "_N"
|
||||
Missing ReferenceId: "_N"
|
||||
Missing ReferenceId: "N"
|
||||
Missing ReferenceId: "N"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0), SymbolId(1)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0), SymbolId(1)]
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(1): [SymbolId(2), SymbolId(3)]
|
||||
rebuilt : ScopeId(1): [SymbolId(2), SymbolId(3)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "x":
|
||||
after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | ConstVariable | Export)
|
||||
rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable | ConstVariable)
|
||||
|
||||
|
|
@ -871,13 +871,13 @@ after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/import/equals/input.ts
|
||||
semantic error: Missing SymbolId: A
|
||||
semantic error: Missing SymbolId: "A"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0)]
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/import/equals-in-unambiguous/input.ts
|
||||
semantic error: Missing SymbolId: A
|
||||
semantic error: Missing SymbolId: "A"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0)]
|
||||
|
|
@ -887,8 +887,8 @@ semantic error: `import lib = require(...);` is only supported when compiling mo
|
|||
Please consider using `import lib from '...';` alongside Typescript's --allowSyntheticDefaultImports option, or add @babel/plugin-transform-modules-commonjs to your Babel config.
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/import/equals-require-in-unambiguous/input.ts
|
||||
semantic error: Missing SymbolId: a
|
||||
Missing ReferenceId: require
|
||||
semantic error: Missing SymbolId: "a"
|
||||
Missing ReferenceId: "require"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0)]
|
||||
|
|
@ -897,7 +897,7 @@ after transform: []
|
|||
rebuilt : ["require"]
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/import/export-import/input.ts
|
||||
semantic error: Missing SymbolId: A
|
||||
semantic error: Missing SymbolId: "A"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0)]
|
||||
|
|
@ -1278,10 +1278,10 @@ after transform: ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(3)]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/module-namespace/body/input.ts
|
||||
semantic error: Missing SymbolId: N
|
||||
Missing SymbolId: _N
|
||||
Missing ReferenceId: N
|
||||
Missing ReferenceId: N
|
||||
semantic error: Missing SymbolId: "N"
|
||||
Missing SymbolId: "_N"
|
||||
Missing ReferenceId: "N"
|
||||
Missing ReferenceId: "N"
|
||||
Binding symbols mismatch:
|
||||
after transform: ScopeId(0): [SymbolId(0)]
|
||||
rebuilt : ScopeId(0): [SymbolId(0)]
|
||||
|
|
@ -1400,7 +1400,7 @@ rebuilt : ScopeId(0): [ScopeId(1)]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(2): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(1): SymbolFlags(Export | RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Export)
|
||||
|
||||
|
|
@ -1484,7 +1484,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/enum-b
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(2): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(2): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Foo":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable)
|
||||
|
||||
|
|
@ -1508,7 +1508,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/export
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Test":
|
||||
after transform: SymbolId(0): SymbolFlags(Export | RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable | Export)
|
||||
|
||||
|
|
@ -1516,7 +1516,7 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/export
|
|||
semantic error: Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Test":
|
||||
after transform: SymbolId(0): SymbolFlags(Export | RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable | Export)
|
||||
|
||||
|
|
@ -1607,10 +1607,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(Class | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(Class)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 21, end: 22 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1618,10 +1618,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "X":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "X":
|
||||
after transform: SymbolId(0): [Span { start: 19, end: 20 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1632,10 +1632,10 @@ rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(2): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(2): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Foo":
|
||||
after transform: SymbolId(0): SymbolFlags(ConstEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Foo":
|
||||
after transform: SymbolId(0): [Span { start: 29, end: 32 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1646,10 +1646,10 @@ rebuilt : ScopeId(1): ScopeFlags(StrictMode | Function)
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(2): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(2): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Foo":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Foo":
|
||||
after transform: SymbolId(0): [Span { start: 17, end: 20 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1657,10 +1657,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 26, end: 27 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1668,10 +1668,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 21, end: 22 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1684,93 +1684,93 @@ after transform: ScopeId(0): [ScopeId(1)]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-equals-var/input.ts
|
||||
semantic error: Missing SymbolId: a
|
||||
semantic error: Missing SymbolId: "a"
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(0): ["M", "a"]
|
||||
rebuilt : ScopeId(0): ["a"]
|
||||
Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "a":
|
||||
after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable | Import)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "a":
|
||||
after transform: SymbolId(1): Span { start: 20, end: 21 }
|
||||
rebuilt : SymbolId(0): Span { start: 0, end: 0 }
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-let/input.ts
|
||||
semantic error: Symbol flags mismatch:
|
||||
semantic error: Symbol flags mismatch for "Context":
|
||||
after transform: SymbolId(1): SymbolFlags(BlockScopedVariable | Import)
|
||||
rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "Context":
|
||||
after transform: SymbolId(1): Span { start: 16, end: 23 }
|
||||
rebuilt : SymbolId(1): Span { start: 104, end: 124 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "Context":
|
||||
after transform: SymbolId(1): [ReferenceId(0)]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Context":
|
||||
after transform: SymbolId(1): [Span { start: 104, end: 124 }]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "a":
|
||||
after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | Import)
|
||||
rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "a":
|
||||
after transform: SymbolId(2): Span { start: 49, end: 50 }
|
||||
rebuilt : SymbolId(2): Span { start: 156, end: 160 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "a":
|
||||
after transform: SymbolId(2): [ReferenceId(2)]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "a":
|
||||
after transform: SymbolId(2): [Span { start: 156, end: 160 }]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "b":
|
||||
after transform: SymbolId(3): SymbolFlags(BlockScopedVariable | Import)
|
||||
rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "b":
|
||||
after transform: SymbolId(3): Span { start: 81, end: 82 }
|
||||
rebuilt : SymbolId(3): Span { start: 170, end: 174 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "b":
|
||||
after transform: SymbolId(3): [ReferenceId(3)]
|
||||
rebuilt : SymbolId(3): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "b":
|
||||
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:
|
||||
semantic error: Symbol flags mismatch for "Context":
|
||||
after transform: SymbolId(1): SymbolFlags(BlockScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "Context":
|
||||
after transform: SymbolId(1): Span { start: 21, end: 28 }
|
||||
rebuilt : SymbolId(1): Span { start: 119, end: 139 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "Context":
|
||||
after transform: SymbolId(1): [ReferenceId(0)]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Context":
|
||||
after transform: SymbolId(1): [Span { start: 119, end: 139 }]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "a":
|
||||
after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "a":
|
||||
after transform: SymbolId(2): Span { start: 59, end: 60 }
|
||||
rebuilt : SymbolId(2): Span { start: 171, end: 175 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "a":
|
||||
after transform: SymbolId(2): [ReferenceId(2)]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "a":
|
||||
after transform: SymbolId(2): [Span { start: 171, end: 175 }]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "b":
|
||||
after transform: SymbolId(3): SymbolFlags(BlockScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(3): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "b":
|
||||
after transform: SymbolId(3): Span { start: 96, end: 97 }
|
||||
rebuilt : SymbolId(3): Span { start: 185, end: 189 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "b":
|
||||
after transform: SymbolId(3): [ReferenceId(3)]
|
||||
rebuilt : SymbolId(3): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "b":
|
||||
after transform: SymbolId(3): [Span { start: 185, end: 189 }]
|
||||
rebuilt : SymbolId(3): []
|
||||
|
||||
|
|
@ -1783,78 +1783,78 @@ after transform: ScopeId(0): [ScopeId(1)]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-import-type-var/input.ts
|
||||
semantic error: Symbol flags mismatch:
|
||||
semantic error: Symbol flags mismatch for "Context":
|
||||
after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "Context":
|
||||
after transform: SymbolId(1): Span { start: 21, end: 28 }
|
||||
rebuilt : SymbolId(1): Span { start: 119, end: 139 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "Context":
|
||||
after transform: SymbolId(1): [ReferenceId(0)]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Context":
|
||||
after transform: SymbolId(1): [Span { start: 119, end: 139 }]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "a":
|
||||
after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "a":
|
||||
after transform: SymbolId(2): Span { start: 59, end: 60 }
|
||||
rebuilt : SymbolId(2): Span { start: 171, end: 175 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "a":
|
||||
after transform: SymbolId(2): [ReferenceId(2)]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "a":
|
||||
after transform: SymbolId(2): [Span { start: 171, end: 175 }]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "b":
|
||||
after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable | TypeImport)
|
||||
rebuilt : SymbolId(3): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "b":
|
||||
after transform: SymbolId(3): Span { start: 96, end: 97 }
|
||||
rebuilt : SymbolId(3): Span { start: 185, end: 189 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "b":
|
||||
after transform: SymbolId(3): [ReferenceId(3)]
|
||||
rebuilt : SymbolId(3): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "b":
|
||||
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:
|
||||
semantic error: Symbol flags mismatch for "Context":
|
||||
after transform: SymbolId(1): SymbolFlags(FunctionScopedVariable | Import)
|
||||
rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "Context":
|
||||
after transform: SymbolId(1): Span { start: 16, end: 23 }
|
||||
rebuilt : SymbolId(1): Span { start: 104, end: 124 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "Context":
|
||||
after transform: SymbolId(1): [ReferenceId(0)]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "Context":
|
||||
after transform: SymbolId(1): [Span { start: 104, end: 124 }]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "a":
|
||||
after transform: SymbolId(2): SymbolFlags(FunctionScopedVariable | Import)
|
||||
rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "a":
|
||||
after transform: SymbolId(2): Span { start: 49, end: 50 }
|
||||
rebuilt : SymbolId(2): Span { start: 156, end: 160 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "a":
|
||||
after transform: SymbolId(2): [ReferenceId(2)]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "a":
|
||||
after transform: SymbolId(2): [Span { start: 156, end: 160 }]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "b":
|
||||
after transform: SymbolId(3): SymbolFlags(FunctionScopedVariable | Import)
|
||||
rebuilt : SymbolId(3): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "b":
|
||||
after transform: SymbolId(3): Span { start: 81, end: 82 }
|
||||
rebuilt : SymbolId(3): Span { start: 170, end: 174 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "b":
|
||||
after transform: SymbolId(3): [ReferenceId(3)]
|
||||
rebuilt : SymbolId(3): []
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "b":
|
||||
after transform: SymbolId(3): [Span { start: 170, end: 174 }]
|
||||
rebuilt : SymbolId(3): []
|
||||
|
||||
|
|
@ -1873,7 +1873,7 @@ rebuilt : ScopeId(0): ["foo", "fooBar"]
|
|||
Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2), ScopeId(3)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "fooBar":
|
||||
after transform: SymbolId(1): [ReferenceId(1), ReferenceId(4)]
|
||||
rebuilt : SymbolId(0): [ReferenceId(0)]
|
||||
|
||||
|
|
@ -1889,13 +1889,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(Class | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(Class)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 10, end: 11 }
|
||||
rebuilt : SymbolId(0): Span { start: 21, end: 22 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 21, end: 22 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1903,13 +1903,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 10, end: 11 }
|
||||
rebuilt : SymbolId(0): Span { start: 24, end: 25 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 24, end: 25 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1925,13 +1925,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 10, end: 11 }
|
||||
rebuilt : SymbolId(0): Span { start: 19, end: 20 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 19, end: 20 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1939,13 +1939,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 10, end: 11 }
|
||||
rebuilt : SymbolId(0): Span { start: 19, end: 20 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 19, end: 20 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1953,10 +1953,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 17, end: 18 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1964,10 +1964,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "X":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "X":
|
||||
after transform: SymbolId(0): [Span { start: 17, end: 18 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1975,13 +1975,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): [ScopeId(1)]
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | Function | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | Function)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 5, end: 6 }
|
||||
rebuilt : SymbolId(0): Span { start: 26, end: 27 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 26, end: 27 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -1989,13 +1989,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 5, end: 6 }
|
||||
rebuilt : SymbolId(0): Span { start: 21, end: 22 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 21, end: 22 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -2003,13 +2003,13 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 5, end: 6 }
|
||||
rebuilt : SymbolId(0): Span { start: 21, end: 22 }
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 21, end: 22 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -2017,10 +2017,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | Interface)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 17, end: 18 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
@ -2028,10 +2028,10 @@ tasks/coverage/babel/packages/babel-parser/test/fixtures/typescript/scope/redecl
|
|||
semantic error: Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "X":
|
||||
after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | TypeAlias)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "X":
|
||||
after transform: SymbolId(0): [Span { start: 17, end: 18 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ semantic_misc Summary:
|
|||
AST Parsed : 30/30 (100.00%)
|
||||
Positive Passed: 17/30 (56.67%)
|
||||
tasks/coverage/misc/pass/babel-16776-m.js
|
||||
semantic error: Symbol flags mismatch:
|
||||
semantic error: Symbol flags mismatch for "x":
|
||||
after transform: SymbolId(0): SymbolFlags(FunctionScopedVariable | Export)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
@ -60,46 +60,46 @@ tasks/coverage/misc/pass/oxc-3948-1.ts
|
|||
semantic error: Bindings mismatch:
|
||||
after transform: ScopeId(0): ["BrowserWorkingCopyBackupTracker", "CancellationToken", "DisposableStore", "EditorPart", "EditorService", "IEditorGroupsService", "IEditorService", "IFilesConfigurationService", "IInstantiationService", "ILifecycleService", "ILogService", "IUntitledTextResourceEditorInput", "IWorkingCopyBackup", "IWorkingCopyBackupService", "IWorkingCopyEditorHandler", "IWorkingCopyEditorService", "IWorkingCopyService", "InMemoryTestWorkingCopyBackupService", "LifecyclePhase", "Schemas", "TestServiceAccessor", "TestWorkingCopy", "URI", "UntitledTextEditorInput", "VSBuffer", "assert", "bufferToReadable", "createEditorPart", "ensureNoDisposablesAreLeakedInTestSuite", "isWindows", "registerTestResourceEditor", "timeout", "toResource", "toTypedWorkingCopyId", "toUntypedWorkingCopyId", "workbenchInstantiationService", "workbenchTeardown"]
|
||||
rebuilt : ScopeId(0): ["BrowserWorkingCopyBackupTracker", "DisposableStore", "EditorService", "IEditorGroupsService", "IEditorService", "IFilesConfigurationService", "ILifecycleService", "ILogService", "IWorkingCopyBackupService", "IWorkingCopyEditorService", "IWorkingCopyService", "InMemoryTestWorkingCopyBackupService", "LifecyclePhase", "Schemas", "TestServiceAccessor", "TestWorkingCopy", "URI", "UntitledTextEditorInput", "VSBuffer", "assert", "bufferToReadable", "createEditorPart", "ensureNoDisposablesAreLeakedInTestSuite", "isWindows", "registerTestResourceEditor", "timeout", "toResource", "toTypedWorkingCopyId", "toUntypedWorkingCopyId", "workbenchInstantiationService", "workbenchTeardown"]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "URI":
|
||||
after transform: SymbolId(1): [ReferenceId(109), ReferenceId(117), ReferenceId(156), ReferenceId(158), ReferenceId(160), ReferenceId(162)]
|
||||
rebuilt : SymbolId(1): [ReferenceId(127), ReferenceId(129), ReferenceId(131), ReferenceId(133)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IEditorService":
|
||||
after transform: SymbolId(2): [ReferenceId(23), ReferenceId(24), ReferenceId(67), ReferenceId(184)]
|
||||
rebuilt : SymbolId(2): [ReferenceId(16), ReferenceId(49), ReferenceId(154)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IEditorGroupsService":
|
||||
after transform: SymbolId(4): [ReferenceId(25), ReferenceId(26), ReferenceId(57), ReferenceId(176)]
|
||||
rebuilt : SymbolId(3): [ReferenceId(17), ReferenceId(40), ReferenceId(147)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "EditorService":
|
||||
after transform: SymbolId(5): [ReferenceId(61), ReferenceId(64), ReferenceId(178), ReferenceId(181)]
|
||||
rebuilt : SymbolId(4): [ReferenceId(46), ReferenceId(151)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IWorkingCopyBackupService":
|
||||
after transform: SymbolId(7): [ReferenceId(11), ReferenceId(12), ReferenceId(51), ReferenceId(170)]
|
||||
rebuilt : SymbolId(5): [ReferenceId(10), ReferenceId(34), ReferenceId(141)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IFilesConfigurationService":
|
||||
after transform: SymbolId(10): [ReferenceId(13), ReferenceId(14)]
|
||||
rebuilt : SymbolId(8): [ReferenceId(11)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IWorkingCopyService":
|
||||
after transform: SymbolId(11): [ReferenceId(15), ReferenceId(16)]
|
||||
rebuilt : SymbolId(9): [ReferenceId(12)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "ILogService":
|
||||
after transform: SymbolId(13): [ReferenceId(19), ReferenceId(20)]
|
||||
rebuilt : SymbolId(10): [ReferenceId(14)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "ILifecycleService":
|
||||
after transform: SymbolId(14): [ReferenceId(17), ReferenceId(18)]
|
||||
rebuilt : SymbolId(11): [ReferenceId(13)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "UntitledTextEditorInput":
|
||||
after transform: SymbolId(17): [ReferenceId(38), ReferenceId(87)]
|
||||
rebuilt : SymbolId(13): [ReferenceId(27)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "InMemoryTestWorkingCopyBackupService":
|
||||
after transform: SymbolId(19): [ReferenceId(43), ReferenceId(46), ReferenceId(165)]
|
||||
rebuilt : SymbolId(15): [ReferenceId(29), ReferenceId(136)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "TestServiceAccessor":
|
||||
after transform: SymbolId(21): [ReferenceId(1), ReferenceId(40), ReferenceId(71), ReferenceId(155), ReferenceId(188)]
|
||||
rebuilt : SymbolId(17): [ReferenceId(53), ReferenceId(158)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "IWorkingCopyEditorService":
|
||||
after transform: SymbolId(32): [ReferenceId(21), ReferenceId(22)]
|
||||
rebuilt : SymbolId(26): [ReferenceId(15)]
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "TestWorkingCopyBackupTracker":
|
||||
after transform: SymbolId(39): [ReferenceId(42), ReferenceId(74), ReferenceId(154), ReferenceId(215)]
|
||||
rebuilt : SymbolId(33): [ReferenceId(56), ReferenceId(185)]
|
||||
Unresolved reference IDs mismatch for "Promise":
|
||||
|
|
@ -143,28 +143,28 @@ rebuilt : ScopeId(8): ["H"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(8): ScopeFlags(StrictMode)
|
||||
rebuilt : ScopeId(8): ScopeFlags(StrictMode | Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "B":
|
||||
after transform: SymbolId(1): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "C":
|
||||
after transform: SymbolId(2): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(4): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "D":
|
||||
after transform: SymbolId(3): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(6): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "E":
|
||||
after transform: SymbolId(4): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(8): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "F":
|
||||
after transform: SymbolId(6): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(10): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "G":
|
||||
after transform: SymbolId(8): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(12): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "H":
|
||||
after transform: SymbolId(10): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(14): SymbolFlags(FunctionScopedVariable)
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -19,10 +19,10 @@ after transform: ["const"]
|
|||
rebuilt : []
|
||||
|
||||
* computed-constant-value/input.ts
|
||||
Missing ReferenceId: Infinity
|
||||
Missing ReferenceId: Infinity
|
||||
Missing ReferenceId: Infinity
|
||||
Missing ReferenceId: Infinity
|
||||
Missing ReferenceId: "Infinity"
|
||||
Missing ReferenceId: "Infinity"
|
||||
Missing ReferenceId: "Infinity"
|
||||
Missing ReferenceId: "Infinity"
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(1): ["A", "a", "b", "c", "d", "e"]
|
||||
rebuilt : ScopeId(1): ["A"]
|
||||
|
|
@ -47,16 +47,16 @@ rebuilt : ScopeId(4): ["D"]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(4): ScopeFlags(0x0)
|
||||
rebuilt : ScopeId(4): ScopeFlags(Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "B":
|
||||
after transform: SymbolId(6): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(2): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "C":
|
||||
after transform: SymbolId(12): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(4): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "D":
|
||||
after transform: SymbolId(16): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(6): SymbolFlags(FunctionScopedVariable)
|
||||
Unresolved references mismatch:
|
||||
|
|
@ -75,26 +75,26 @@ after transform: ScopeId(0): [ScopeId(1)]
|
|||
rebuilt : ScopeId(0): []
|
||||
|
||||
* enum-member-reference/input.ts
|
||||
Missing ReferenceId: Foo
|
||||
Missing ReferenceId: "Foo"
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(1): ["Foo", "a", "b", "c"]
|
||||
rebuilt : ScopeId(1): ["Foo"]
|
||||
Scope flags mismatch:
|
||||
after transform: ScopeId(1): ScopeFlags(0x0)
|
||||
rebuilt : ScopeId(1): ScopeFlags(Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Foo":
|
||||
after transform: SymbolId(1): SymbolFlags(RegularEnum)
|
||||
rebuilt : SymbolId(1): SymbolFlags(FunctionScopedVariable)
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "Foo":
|
||||
after transform: SymbolId(5): [ReferenceId(3), ReferenceId(4), ReferenceId(5), ReferenceId(6), ReferenceId(7), ReferenceId(8), ReferenceId(9)]
|
||||
rebuilt : SymbolId(2): [ReferenceId(0), ReferenceId(1), ReferenceId(2), ReferenceId(3), ReferenceId(4), ReferenceId(5), ReferenceId(6), ReferenceId(8)]
|
||||
|
||||
* export-elimination/input.ts
|
||||
Missing SymbolId: Name
|
||||
Missing SymbolId: _Name
|
||||
Missing ReferenceId: _Name
|
||||
Missing ReferenceId: Name
|
||||
Missing ReferenceId: Name
|
||||
Missing SymbolId: "Name"
|
||||
Missing SymbolId: "_Name"
|
||||
Missing ReferenceId: "_Name"
|
||||
Missing ReferenceId: "Name"
|
||||
Missing ReferenceId: "Name"
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(0): ["Baq", "Bar", "Baz", "Foo", "Func", "Im", "Name", "Ok", "T"]
|
||||
rebuilt : ScopeId(0): ["Bar", "Foo", "Func", "Im", "Name", "Ok", "T"]
|
||||
|
|
@ -107,57 +107,57 @@ rebuilt : ScopeId(3): [SymbolId(6), SymbolId(7)]
|
|||
Scope flags mismatch:
|
||||
after transform: ScopeId(5): ScopeFlags(StrictMode | Function)
|
||||
rebuilt : ScopeId(3): ScopeFlags(Function)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "Q":
|
||||
after transform: SymbolId(8): SymbolFlags(BlockScopedVariable | ConstVariable | Export)
|
||||
rebuilt : SymbolId(7): SymbolFlags(BlockScopedVariable | ConstVariable)
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "T":
|
||||
after transform: SymbolId(9): SymbolFlags(FunctionScopedVariable | Export | TypeAlias)
|
||||
rebuilt : SymbolId(8): SymbolFlags(FunctionScopedVariable | Export)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "T":
|
||||
after transform: SymbolId(9): Span { start: 205, end: 206 }
|
||||
rebuilt : SymbolId(8): Span { start: 226, end: 227 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "T":
|
||||
after transform: SymbolId(9): [ReferenceId(8), ReferenceId(9)]
|
||||
rebuilt : SymbolId(8): [ReferenceId(9)]
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "T":
|
||||
after transform: SymbolId(9): [Span { start: 226, end: 227 }]
|
||||
rebuilt : SymbolId(8): []
|
||||
Reference symbol mismatch:
|
||||
after transform: ReferenceId(7): Some("Name")
|
||||
rebuilt : ReferenceId(8): Some("Name")
|
||||
Reference symbol mismatch for "Name":
|
||||
after transform: SymbolId(7) "Name"
|
||||
rebuilt : SymbolId(5) "Name"
|
||||
|
||||
* redeclarations/input.ts
|
||||
Scope children mismatch:
|
||||
after transform: ScopeId(0): [ScopeId(1), ScopeId(2)]
|
||||
rebuilt : ScopeId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "A":
|
||||
after transform: SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Export | Import)
|
||||
rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable | ConstVariable | Export)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "A":
|
||||
after transform: SymbolId(0): Span { start: 57, end: 58 }
|
||||
rebuilt : SymbolId(0): Span { start: 79, end: 83 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "A":
|
||||
after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)]
|
||||
rebuilt : SymbolId(0): [ReferenceId(0)]
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "A":
|
||||
after transform: SymbolId(0): [Span { start: 79, end: 83 }]
|
||||
rebuilt : SymbolId(0): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "T":
|
||||
after transform: SymbolId(1): SymbolFlags(Export | Import | TypeAlias)
|
||||
rebuilt : SymbolId(1): SymbolFlags(Export | Import)
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "T":
|
||||
after transform: SymbolId(1): [Span { start: 170, end: 171 }]
|
||||
rebuilt : SymbolId(1): []
|
||||
Symbol flags mismatch:
|
||||
Symbol flags mismatch for "B":
|
||||
after transform: SymbolId(2): SymbolFlags(BlockScopedVariable | ConstVariable | Export | Import | TypeAlias)
|
||||
rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable | ConstVariable | Export)
|
||||
Symbol span mismatch:
|
||||
Symbol span mismatch for "B":
|
||||
after transform: SymbolId(2): Span { start: 267, end: 268 }
|
||||
rebuilt : SymbolId(2): Span { start: 289, end: 293 }
|
||||
Symbol reference IDs mismatch:
|
||||
Symbol reference IDs mismatch for "B":
|
||||
after transform: SymbolId(2): [ReferenceId(3), ReferenceId(4)]
|
||||
rebuilt : SymbolId(2): [ReferenceId(2)]
|
||||
Symbol redeclarations mismatch:
|
||||
Symbol redeclarations mismatch for "B":
|
||||
after transform: SymbolId(2): [Span { start: 289, end: 293 }, Span { start: 304, end: 305 }]
|
||||
rebuilt : SymbolId(2): []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue