diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap index 378803cd72faf1..d01a9b090ec39f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "BlockStatement", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap index 65d4035567b42f..60881d915dd1aa 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "BlockStatement", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "i", "node": "VariableDeclarator(i)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "i", "node_id": 11 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "j", "node": "VariableDeclarator(j)", @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap index e074f808ef948f..dff558aa270c84 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap @@ -7,30 +7,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "foo", "node_id": 13 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "foo", "node_id": 19 @@ -38,19 +38,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "a", "node_id": 15 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "a", "node_id": 21 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters1.snap index a172fa84e044d5..d41773961fa3d0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters1.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap index 2e7046928bc87c..000fe66c775c64 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap index 6d1ce6fe132573..672a365e2010d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "BlockStatement", "symbols": [] @@ -16,12 +16,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "BlockStatement", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable | CatchVariable)", + "flags": "SymbolFlags(FunctionScopedVariable | CatchVariable)", "id": 1, "name": "e", "node": "CatchParameter", @@ -30,24 +30,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited ] } ], - "flag": "ScopeFlags(StrictMode | CatchClause)", + "flags": "ScopeFlags(StrictMode | CatchClause)", "id": 2, "node": "CatchClause", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap index 96300969e2c889..68bd90a6a02785 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "BlockStatement", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "BlockStatement", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable | CatchVariable)", + "flags": "SymbolFlags(FunctionScopedVariable | CatchVariable)", "id": 0, "name": "e", "node": "CatchParameter", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "e", "node_id": 8 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "a", "node": "VariableDeclarator(a)", @@ -44,25 +44,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts ] } ], - "flag": "ScopeFlags(StrictMode | CatchClause)", + "flags": "ScopeFlags(StrictMode | CatchClause)", "id": 2, "node": "CatchClause", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "dontReference2", "node": "VariableDeclarator(dontReference2)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-accessor-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-accessor-property.snap index 501439bab4b3cb..a329cdbc03be05 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-accessor-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-accessor-property.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-property.snap index 2915fa56e11350..419902f012b5c3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract-property.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap index bb644bd247dd63..1f7932c8f8d087 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap @@ -9,19 +9,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -30,18 +30,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property-type-annotation.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property-type-annotation.snap index 45fb474785cc1e..6fc03a5f19ea36 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property-type-annotation.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property-type-annotation.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap index cfd2961d3f5275..2e920cbf6d1da1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 15 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap index 8642634e657629..1f0bd5cd3e8f8e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap @@ -9,30 +9,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer1", "node": "VariableDeclarator(outer1)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "outer1", "node_id": 14 @@ -40,13 +40,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "outer2", "node": "VariableDeclarator(outer2)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer2", "node_id": 18 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 2, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends-generic.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends-generic.snap index 392cbdfd87a489..a5f1b49805b5ed 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends-generic.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends-generic.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", @@ -22,31 +22,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "Class(B)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 13 @@ -54,13 +54,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 3, "name": "B", "node": "Class(B)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends.snap index 883a64d63186c8..67d103fa0830a9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/extends.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(B)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 7 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "B", "node": "Class(B)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-extends.snap index ad30bc83fcf1a2..2125174907a1f9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-extends.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "A", "node_id": 11 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-implements.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-implements.snap index 253f7df9d907db..9c7e304f362aa9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-implements.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic-ref-implements.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "A", "node_id": 12 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap index 0ea3f0c286ae6c..87fe799c9b7aa1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements-generic.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements-generic.snap index 17b159b96b6a32..1cb550334a1e8e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements-generic.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements-generic.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", @@ -22,31 +22,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "Class(B)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "A", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 13 @@ -54,13 +54,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 3, "name": "B", "node": "Class(B)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements.snap index de678c0fa15d74..c2bd40f0537e18 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/implements.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(B)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "A", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 7 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "B", "node": "Class(B)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/index-signature.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/index-signature.snap index 7fa74d450897ae..80078927fb84e0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/index-signature.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/index-signature.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Bar", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "Bar", "node_id": 14 @@ -39,13 +39,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "Foo", "node_id": 22 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap index a9adf822531364..4efeb626f273d9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "printName", "node": "FormalParameter(printName)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "printName", "node_id": 19 @@ -31,18 +31,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "printerName", "node": "FormalParameter(printerName)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "printerName", "node_id": 40 @@ -52,18 +52,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap index 0e7d09a9c73ea0..77b3be26f36727 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap @@ -9,24 +9,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 26 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "a", "node_id": 31 @@ -34,35 +34,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", "node": "FormalParameter(f)", @@ -71,32 +71,32 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 7, "name": "unresolved1", "node": "VariableDeclarator(unresolved1)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved2", "node": "VariableDeclarator(unresolved2)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/new.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/new.snap index aa363c49cf423e..15a054ce6fde76 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/new.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/new.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 6 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/parameter-properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/parameter-properties.snap index 82fdd1372397f7..361af3463aeb61 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/parameter-properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/parameter-properties.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,24 +16,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 26 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "a", "node_id": 41 @@ -41,35 +41,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "c", "node": "FormalParameter(c)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "f", "node": "FormalParameter(f)", @@ -78,24 +78,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", "node": "VariableDeclarator(outer)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer", "node_id": 30 @@ -103,13 +103,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Outer", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "Outer", "node_id": 38 @@ -117,14 +117,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 2, "name": "A", "node": "Class(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/private-identifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/private-identifier.snap index 5a388a8e13fe28..a602d0e9a07926 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/private-identifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/private-identifier.snap @@ -9,24 +9,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties-type-annotation.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties-type-annotation.snap index 9f2097bcd18725..157fc06e20a109 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties-type-annotation.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties-type-annotation.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap index c242055994f6ec..fa9bfa043cdc1a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 15 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-block.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-block.snap index 3c201547dd72da..1310c4a7309aa8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-block.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-block.snap @@ -9,24 +9,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | ClassStaticBlock)", + "flags": "ScopeFlags(StrictMode | ClassStaticBlock)", "id": 2, "node": "StaticBlock", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-external-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-external-ref.snap index c59e2a4433c022..cbe06c376ca62d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-external-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-external-ref.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(f)", "symbols": [] @@ -16,30 +16,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | ClassStaticBlock)", + "flags": "ScopeFlags(StrictMode | ClassStaticBlock)", "id": 3, "node": "StaticBlock", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "f", "node": "Function(f)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "f", "node_id": 11 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-with-constructor.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-with-constructor.snap index 5dcd3a541cd19b..abb6fa265b5b43 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-with-constructor.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/static-with-constructor.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(f)", "symbols": [] @@ -16,37 +16,37 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | ClassStaticBlock)", + "flags": "ScopeFlags(StrictMode | ClassStaticBlock)", "id": 3, "node": "StaticBlock", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 4, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "f", "node": "Function(f)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "f", "node_id": 17 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/type-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/type-reference.snap index da42f377083678..c0baec6ebdf79a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/type-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/type-reference.snap @@ -7,50 +7,50 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 8 }, { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 1, "name": "A", "node_id": 13 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "A", "node_id": 17 @@ -58,21 +58,21 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T1", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "T2", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "v", "node": "VariableDeclarator(v)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap index 06f8961b12673c..08bcb11eea76f4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap @@ -9,30 +9,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer1", "node": "VariableDeclarator(outer1)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "outer1", "node_id": 16 @@ -40,13 +40,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "outer2", "node": "VariableDeclarator(outer2)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer2", "node_id": 20 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "A", "node": "VariableDeclarator(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap index 238160065d7882..461fc9d5f12b6c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 9 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "B", "node": "VariableDeclarator(B)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap index 4c2eaaaa4f7f8d..d1e29b924c12ec 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap @@ -9,24 +9,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 28 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "a", "node_id": 33 @@ -34,35 +34,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", "node": "FormalParameter(f)", @@ -71,32 +71,32 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", "node": "VariableDeclarator(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 7, "name": "unresolved1", "node": "VariableDeclarator(unresolved1)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved2", "node": "VariableDeclarator(unresolved2)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap index 687c70af69cd37..36f9a0319ab2ff 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", "node": "VariableDeclarator(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/parameter-properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/parameter-properties.snap index c075288387b1e5..20f7c9317d7607 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/parameter-properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/parameter-properties.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,24 +16,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 28 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "a", "node_id": 43 @@ -41,35 +41,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "c", "node": "FormalParameter(c)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "f", "node": "FormalParameter(f)", @@ -78,24 +78,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", "node": "VariableDeclarator(outer)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer", "node_id": 32 @@ -103,13 +103,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Outer", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "Outer", "node_id": 40 @@ -117,14 +117,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "A", "node": "VariableDeclarator(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap index 8d2e2fed988963..ee8df17250289e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap @@ -9,24 +9,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "Foo", "node": "VariableDeclarator(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap index f6d1d7b69f3f18..fc6306dbfd3bd0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 17 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "A", "node": "VariableDeclarator(A)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap index 05efe356f417b4..3b0b3b6bc6ae97 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(A)", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "A", "node_id": 7 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", "node": "VariableDeclarator(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap index a07420cbf5f266..7182d401c4d2c4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/acce "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] @@ -16,19 +16,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/acce "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | GetAccessor)", + "flags": "ScopeFlags(StrictMode | Function | GetAccessor)", "id": 3, "node": "Function()", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function | SetAccessor)", + "flags": "ScopeFlags(StrictMode | Function | SetAccessor)", "id": 4, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", "node": "FormalParameter(value)", @@ -37,30 +37,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/acce ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 10 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "decorator", "node_id": 20 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/acce ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-deco-with-object-param.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-deco-with-object-param.snap index 4cfb08b3ef40e1..3b999827f7629a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-deco-with-object-param.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-deco-with-object-param.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(deco)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "param", "node": "BindingRestElement", @@ -22,18 +22,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-property.snap index 5e6015ef039885..cd69c8c2c9d1ba 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class-property.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 10 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class.snap index 4fd0f6dd711988..b33c5502247292 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/class.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 7 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/clas ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/method.snap index 86c8ebcf15693f..d38d84c767e149 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/method.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/meth "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] @@ -16,30 +16,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/meth "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 10 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/meth ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap index 43a9cfb40af4b1..cb0730ec84cfbb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] @@ -16,19 +16,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Constructor)", + "flags": "ScopeFlags(StrictMode | Function | Constructor)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", "node": "FormalParameter(b)", @@ -37,30 +37,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 15 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "decorator", "node_id": 19 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap index 7c6dcd464a19ce..4e141923fb7679 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] @@ -16,33 +16,33 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", "node": "FormalParameter(d)", @@ -51,42 +51,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(A)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 15 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "decorator", "node_id": 19 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "decorator", "node_id": 24 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "decorator", "node_id": 31 @@ -94,7 +94,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "A", "node": "Class(A)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap index e46386ed44ef61..f6cc701f600fd0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/type "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(decorator)", "symbols": [] @@ -16,12 +16,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/type "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "baz", "node": "FormalParameter(baz)", @@ -30,24 +30,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/type ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "decorator", "node": "Function(decorator)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "decorator", "node_id": 7 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/type ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap index 299cdf074c996c..28745125f28606 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "obj", "node": "VariableDeclarator(obj)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "obj", "node_id": 18 @@ -24,13 +24,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "b", "node": "VariableDeclarator(b)", "references": [ { - "flag": "ReferenceFlags(Write)", + "flags": "ReferenceFlags(Write)", "id": 1, "name": "b", "node_id": 22 @@ -38,13 +38,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "c", "node": "VariableDeclarator(c)", "references": [ { - "flag": "ReferenceFlags(Write)", + "flags": "ReferenceFlags(Write)", "id": 2, "name": "c", "node_id": 28 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap index 7d4a97a9ed9d89..307397e6817090 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap @@ -5,54 +5,54 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "b", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "c", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "d", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "e", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "f", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 6, "name": "rest", "node": "VariableDeclarator()", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap index 290ffe0c9a154f..a049800c1c1c90 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/o [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "obj", "node": "VariableDeclarator(obj)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "obj", "node_id": 27 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap index 016442f3937a0f..9a7b4692132f8e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap @@ -5,54 +5,54 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/o [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "shorthand", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "value", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "world", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "a", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "b", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "c", "node": "VariableDeclarator()", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 6, "name": "d", "node": "VariableDeclarator()", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/all.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/all.snap index e8f4e623678404..f8c36e2a312313 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/all.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/all.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/all.ts [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap index ffa325b9cebb27..6cdfbae6ea3b98 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "T", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1.snap index 36dd5d2d6bc513..709803d979776c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default1 "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(f)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Export | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Export | Function)", "id": 0, "name": "f", "node": "Function(f)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap index 12d6fa7c01e5e5..81f4192048aee0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2 [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3.snap index 80a2a9580d6461..b0233d7707c741 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default3 [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4.snap index a40491081c29bc..a7d2f099a96d9d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4.snap @@ -7,13 +7,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default4 "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap index 68c199d0df02c9..515a036b392ef3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1. [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2.snap index 0fa93cfcbf9c77..25533a24e54509 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals2. [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3-type.snap index e917f7ca5934df..34e0a81687101e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3-type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals3- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Foo", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "Foo", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4-type.snap index 62e0b30ee8ce65..99c9f058c1a70a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4-type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap index 1f70da5fd079db..ba7ae07fd00837 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-du "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "T", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source1.snap index edfea98dc0c856..9d6d80e5df7aae 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source1.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-so [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source2.snap index c7037b3b501e65..1004ca8cc9a008 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-source2.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-so [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-type1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-type1.snap index ef5dc755376811..7ad9b50c64c860 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-type1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-type1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-ty "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Export | TypeAlias)", + "flags": "SymbolFlags(Export | TypeAlias)", "id": 0, "name": "X", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap index 3ad06c1c470c56..b891dbb734ebf2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.t [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-type.snap index f1a3a2b9789f20..b84e5d458e92cb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2-t "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Export | TypeAlias)", + "flags": "SymbolFlags(Export | TypeAlias)", "id": 0, "name": "A", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap index 4187ca769eaf91..2cdc7a8907e155 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.t [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3-type.snap index 9e3c146c0ea3ab..65a5c15c56a6f0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3-type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3-t "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Export | TypeAlias)", + "flags": "SymbolFlags(Export | TypeAlias)", "id": 0, "name": "V", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "V", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap index 7f78ce885f8bf8..524ec742e1aaf6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.t [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "v", "node": "VariableDeclarator(v)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "v", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap index c5206451cad75c..3b59ff94b9d64c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inl "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap index 5fa49f54700241..358088be9f127d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.ts "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap index 0d338dd3e98212..cf9a4be1bc48bf 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap index 7347a0f188750b..9f92b2eb4440af 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 13 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap index fcb470c1bf4c9c..cf7b31adcbbcfb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap index 768601f99df469..6a25abd95d310a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap @@ -9,25 +9,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -36,18 +36,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 16 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap index f3313f405d26f0..d1d5f04c64ffaf 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -29,18 +29,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 16 @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap index 89e083f165e865..3f6b337fc22104 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap index e4996314cf435d..75afde02ee168e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 13 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap index ec06ee23532afc..8a71b0c9669682 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap index b516a4f4e838d1..5a13650149671b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", "node": "VariableDeclarator(parentScoped)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "parentScoped", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap index b55b4dd6c4254b..9a90c0267dc2c6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 8 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap index a5b69f05858930..412d7876f91431 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 25 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "a", "node_id": 34 @@ -32,42 +32,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", "node": "FormalParameter(f)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "g", "node": "FormalParameter(g)", @@ -76,18 +76,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", "node": "VariableDeclarator(outer)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer", "node_id": 29 @@ -95,7 +95,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap index d3de38aff514e8..6a760fa558855b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", "node": "VariableDeclarator(i)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "i", "node_id": 16 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", "node": "VariableDeclarator(j)", @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "arrow", "node": "VariableDeclarator(arrow)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/body-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/body-reference.snap index 17738b2433795c..8c26f3de77856c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/body-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/body-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 16 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", "node": "VariableDeclarator(x)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/param-reference.snap index 1dcea9d4617e5e..e13e12041c7851 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/return-value-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/return-value-reference.snap index 37956753b13c7d..77dffc7b2c3fc2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/return-value-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/return-value-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-param-reference.snap index d4057838bf44ba..2614cd3ecd698a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap index 7c4906fe2602b8..c7ac24261a457f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap index 011e5884426fce..f1bbb077573313 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", @@ -21,12 +21,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts2.snap index a0b23521559b25..dc76b47bb4bde4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts2.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 2, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap index 936794e027c7e1..ab0e0ce6dce32f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "arg", "node_id": 18 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate2.snap index d1541e7bbbdc2e..34e32379fb01ff 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate2.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 2, "node": "ArrowFunctionExpression", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", "node_id": 23 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap index e450a515a76a52..27be84dc7ccaf9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 10 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap index bcfcf03e528ff5..432baaf1cb80d4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 11 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap index 915cb21b9bb229..7cf5a71093a6bf 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 10 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap index 30d3518979aedf..708e049cfc6662 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap @@ -9,25 +9,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -36,18 +36,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 14 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap index 7fa88595daf9d2..aef6211b34834f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -29,18 +29,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 14 @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap index 1f53c59049f14d..1e6ab01afaf40a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 10 @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap index ee34687bdbdb01..bc5b83eb18d08f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 11 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap index 7b930597d0061b..32bddae9676820 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap index d0327c9a9d25bd..fed5a7d4efea52 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", "node": "VariableDeclarator(parentScoped)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "parentScoped", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap index 12f62ccb8ca51f..32a71a7bf288c4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", "node": "VariableDeclarator(Foo)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "Foo", "node": "Function(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 12 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", "node": "VariableDeclarator(usage)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap index 4ef2f948ee5438..218a1693c2eb7b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "b", "node": "FormalParameter(b)", @@ -29,18 +29,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 17 @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", "node": "FormalParameter(b)", @@ -57,12 +57,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 2, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap index 5e3f509ef86c04..8454e6ca058de6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 25 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "a", "node_id": 34 @@ -32,42 +32,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "f", "node": "FormalParameter(f)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "g", "node": "FormalParameter(g)", @@ -76,18 +76,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", "node": "VariableDeclarator(outer)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer", "node_id": 29 @@ -95,14 +95,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap index 303fa3ccc8b684..483c4a2886b775 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", "node": "VariableDeclarator(i)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "i", "node_id": 14 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", "node": "VariableDeclarator(j)", @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/body-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/body-reference.snap index 88fcc22053fbbf..e1a67a821a5a47 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/body-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/body-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", "node": "VariableDeclarator(x)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/param-reference.snap index 4e3a815b118250..1ebdeb7f443197 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/return-value-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/return-value-reference.snap index 33c2c9b6351ec5..3943886b74aa64 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/return-value-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/return-value-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-param-reference.snap index 371085bf8f5d35..923e25c29afb27 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap index e2c3325037f715..c15854bfd3e980 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap index 5a477758493bad..80fb5306cab95e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", @@ -21,12 +21,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts2.snap index baf3601407b3ea..13797f1b1e6929 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts2.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 16 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap index 0cf30c58f215f6..7be0be3be21be5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "arg", "node_id": 16 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate2.snap index 06ba51f86fe701..302be84114da9c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate2.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", "node_id": 21 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 16 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap index abb4ddd671af42..284c799cb53a2d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap index f99c849a684a86..2416a1181741d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap index 1b921013c43973..5fcc29d3647473 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 13 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap index 8d4ea417132121..487dfcb91e8076 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap index 18b2d848f794ca..a5ab237cdee209 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap @@ -9,25 +9,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", "node": "VariableDeclarator(a)", @@ -36,18 +36,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 16 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap index 29a33d523283c6..ed7c1c570f6f78 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -29,18 +29,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 16 @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap index b309626f813b03..56ddbe741b780d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 12 @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap index 353fa06ff60f04..e973e8ecff12b2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 13 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap index 5d6aec448878f8..f0bcbf32d619fa 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", "node": "FormalParameter(a)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", "node": "FormalParameter(b)", @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap index da8a361b6a40e6..3893c73a640653 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", "node": "VariableDeclarator(parentScoped)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "parentScoped", "node_id": 13 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap index ac879db7f4fbbb..423b01f09c5482 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 27 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "a", "node_id": 36 @@ -32,42 +32,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", "node": "FormalParameter()", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", "node": "FormalParameter(d)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "e", "node": "FormalParameter(e)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "f", "node": "FormalParameter(f)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "g", "node": "FormalParameter(g)", @@ -76,18 +76,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", "node": "VariableDeclarator(outer)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "outer", "node_id": 31 @@ -95,14 +95,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap index 25cd9f4bcf4ef8..ff199e2c16798b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", "node": "VariableDeclarator(i)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "i", "node_id": 16 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", "node": "VariableDeclarator(j)", @@ -35,19 +35,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/body-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/body-reference.snap index 77fe355e0e5f3e..9b0b87c7bbf3ae 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/body-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/body-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 16 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", "node": "VariableDeclarator(x)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/param-reference.snap index 68f453f1656d0c..1276d9d233a9b4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/return-value-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/return-value-reference.snap index bb11b9749fbae5..97b59ed01506a3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/return-value-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/return-value-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-param-reference.snap index 31e8db405d2803..a656c00292844e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap index 690f1d64366bbf..3ab5b100acf69e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap index 7e0d0e35e972d7..4d872bb526690c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", @@ -21,12 +21,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts2.snap index bee4e908716845..955fc46fc884ac 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts2.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap index ee9b273fc7e24a..76744ce378b7e0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "arg", "node_id": 18 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate2.snap index 2bdc917d7f9425..4d08341b3343b8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate2.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function()", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", "node": "FormalParameter(arg)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", "node_id": 23 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", "node": "VariableDeclarator(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/class.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/class.snap index 1721ed86cf1c2f..8aecdbd2ba1624 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/class.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/class.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 6 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/function.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/function.snap index 1594d3ee50b66e..dad9fa2f746da4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/function.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/function.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(top)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "top", "node": "Function(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap index 2dc9b05afdedec..d4a18b6bb04128 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap index 84240637176567..43e15f5efc9cc7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap index c394c815b1342c..66ec302f1c2fd2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(FunctionScopedVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/class.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/class.snap index e7a140a9bb4943..d480eb98a6a787 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/class.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/class.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 6 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/function.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/function.snap index 9328881d5aadc5..b8f8e89c64c9aa 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/function.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/function.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(top)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "top", "node": "Function(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap index b40500374b175f..7d2f3941b95d23 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap index 029ce69ab14747..ed061693060e34 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(BlockScopedVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap index 026269f2adbbef..1688b6e33673c7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 1, "node": "ArrowFunctionExpression", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable | ArrowFunction)", + "flags": "SymbolFlags(FunctionScopedVariable | ArrowFunction)", "id": 0, "name": "top", "node": "VariableDeclarator(top)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "top", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap index 42cf0d5dcdaf83..bde0fac318822e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implic [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap index 318f1033460af1..3c49fcc856a112 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap @@ -7,30 +7,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default. "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "v", "node": "ImportDefaultSpecifier", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "v", "node_id": 7 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", "node_id": 12 @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default. ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals1.snap index 43c512722feb03..4fdeea3f008669 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals1.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals1. [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "foo", "node": "TSImportEqualsDeclaration", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "foo", "node_id": 7 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap index afb90e70503868..a9eb7bb23c9400 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2. [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 9 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2. ] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "foo", "node": "TSImportEqualsDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-alias.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-alias.snap index 83e331749d4a46..059cbf7925d03d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-alias.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-alias.snap @@ -7,30 +7,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-al "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "t", "node": "ImportSpecifier(t)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "t", "node_id": 8 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "t", "node_id": 13 @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-al ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap index 440a76084da4cf..a52d5f3603b844 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap @@ -7,30 +7,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.ts "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "v", "node": "ImportSpecifier(v)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "v", "node_id": 8 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", "node_id": 13 @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.ts ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap index 00c5eae3d091a5..8c273be13cc7da 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap @@ -7,30 +7,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespac "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "v", "node": "ImportNamespaceSpecifier", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "v", "node_id": 7 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", "node_id": 12 @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespac ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default-value.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default-value.snap index 95f718490fec0b..6e08802eb578b7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default-value.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default-value.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "foo", "node": "ImportDefaultSpecifier", "references": [ { - "flag": "ReferenceFlags(Type | TSTypeQuery)", + "flags": "ReferenceFlags(Type | TSTypeQuery)", "id": 0, "name": "foo", "node_id": 10 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default.snap index ffd53965711bcd..9483645510cf12 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-default.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "T", "node": "ImportDefaultSpecifier", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Ref", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline-value.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline-value.snap index a78b5d134372ba..8133c64fb029c8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline-value.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline-value.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "foo", "node": "ImportSpecifier(foo)", "references": [ { - "flag": "ReferenceFlags(Type | TSTypeQuery)", + "flags": "ReferenceFlags(Type | TSTypeQuery)", "id": 0, "name": "foo", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline.snap index fed81924f29eec..4cf159d634999c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inline.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "T", "node": "ImportSpecifier(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Ref", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named-value.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named-value.snap index 6f305f03d0cee7..062de274b00737 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named-value.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named-value.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "foo", "node": "ImportSpecifier(foo)", "references": [ { - "flag": "ReferenceFlags(Type | TSTypeQuery)", + "flags": "ReferenceFlags(Type | TSTypeQuery)", "id": 0, "name": "foo", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named.snap index 8c3e20d956db99..95b5580e62b2dc 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-named.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeImport)", + "flags": "SymbolFlags(TypeImport)", "id": 0, "name": "T", "node": "ImportSpecifier(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -32,14 +32,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Ref", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments1.snap index 06db56e35e60de..7da73b6aeee163 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 @@ -29,18 +29,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "Class(Bar)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 3, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", "node_id": 28 @@ -50,18 +50,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "Foo", "node_id": 24 @@ -69,13 +69,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e ] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 2, "name": "Bar", "node": "Class(Bar)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "Bar", "node_id": 31 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments2.snap index 4e79ac0f078496..90a455626ba565 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-expressions/type-arguments2.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(makeBox)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -26,13 +26,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", "node": "FormalParameter(value)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "value", "node_id": 19 @@ -43,18 +43,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 4, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", "node_id": 31 @@ -64,24 +64,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "makeBox", "node": "Function(makeBox)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 2, "name": "makeBox", "node_id": 27 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 4, "name": "makeBox", "node_id": 36 @@ -89,14 +89,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 3, "name": "BoxFunc", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "makeStringBox", "node": "VariableDeclarator(makeStringBox)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap index fab925c193bf06..d5ec8c791cc288 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-s [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "x", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap index 62659a54bce868..ddd545510f9c5e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.t [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "x", "node_id": 17 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.t ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "attr", "node": "VariableDeclarator(attr)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap index 6bc925935d60de..e4486b03799902 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.ts [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "child", "node": "VariableDeclarator(child)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "child", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-intrinsic-name.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-intrinsic-name.snap index 8e44501e486943..d97b6456caa8e6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-intrinsic-name.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-intrinsic-name.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-i "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(div)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "div", "node": "Function(div)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap index 60dd0900ccec64..082d1abe11d04c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "X", "node": "VariableDeclarator(X)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "X", "node_id": 21 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", "node": "VariableDeclarator(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap index 83efddbc32a997..48d43c0ba96193 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 21 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", "node": "VariableDeclarator(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.snap index ec934d773888ff..99abc80f145b74 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component.t "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "Foo", "node": "Function(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap index a6709a90d55d1f..7d80a582c340c5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap @@ -5,19 +5,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/def [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", "references": [] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "Fragment", "node": "ImportSpecifier(Fragment)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma-fragment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma-fragment.snap index a86a34842f8f7c..bd30d648fdac0f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma-fragment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma-fragment.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/def [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma.snap index 669fd0871f82b3..592127f9d4c815 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxPragma.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/def [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap index 38b533d236c9d0..e2a589e7e9a110 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap @@ -5,19 +5,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", "references": [] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "Fragment", "node": "ImportSpecifier(Fragment)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap index d094ff5ced5404..779a7d95d89908 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap @@ -5,26 +5,26 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", "references": [] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "h", "node": "ImportSpecifier(h)", "references": [] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 2, "name": "Fragment", "node": "ImportSpecifier(Fragment)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap index d75c2e4b2a701b..0831414e3e11e7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap @@ -5,19 +5,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportDefaultSpecifier", "references": [] }, { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "h", "node": "ImportSpecifier(h)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap index a1560c008b3d49..7832045eb0d6d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-ch [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "child", "node": "VariableDeclarator(child)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "child", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.snap index 1237b9f8d465ed..7abe88fb03cf58 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.snap @@ -5,7 +5,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment.ts [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-type-param.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-type-param.snap index 49015bfe5ff33a..4c8d0eb836e4b7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-type-param.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-type-param.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-typ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 13 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced-attribute.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced-attribute.snap index 62b85768dced13..852e9b9b9e3455 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced-attribute.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced-attribute.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(Foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "props", "node": "FormalParameter(props)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "props", "node_id": 57 @@ -35,39 +35,39 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 0, "name": "React", "node": "ImportNamespaceSpecifier", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "y", "node": "VariableDeclarator(y)", "references": [] }, { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 3, "name": "FooProps", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "FooProps", "node_id": 45 @@ -75,19 +75,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 4, "name": "Foo", "node": "Function(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 12 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "Foo", "node_id": 24 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap index fbfc986797f831..9d8722f133f640 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.tsx [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "Foo", "node": "VariableDeclarator(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap index 7426ab8bd6169c..afb3eacafe8d49 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap @@ -9,38 +9,38 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxide "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function | Arrow)", + "flags": "ScopeFlags(StrictMode | Function | Arrow)", "id": 2, "node": "ArrowFunctionExpression", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function()", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "React", "node": "VariableDeclarator(React)", "references": [] }, { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 1, "name": "Foo", "node": "Class(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap index e9ce9524427ddd..faf83b0938f4ef 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap @@ -5,42 +5,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expressi [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 7 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "x", "node_id": 14 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "x", "node_id": 21 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 3, "name": "x", "node_id": 28 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 4, "name": "x", "node_id": 35 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap index ae0b2427f06835..1668230b3beba8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class)", + "flags": "SymbolFlags(Class)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 10 @@ -32,13 +32,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "a", "node": "VariableDeclarator(a)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "a", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters1.snap index 30e61d827bb52f..03a8a318eb245d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters1.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 11 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap index 4627b796aff49d..e6cbc57a7a42ac 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap @@ -5,12 +5,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "T", "node": "VariableDeclarator(T)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/external-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/external-ref.snap index 0e33ea5ecd3a8b..1c267c53770212 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/external-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/external-ref.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/externa "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/externa ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 8 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member-ref.snap index 8da779e08f5b75..b6fd9caa84365c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member-ref.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 8 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal ] }, { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 2, "name": "b", "node": "TSEnumMember", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member.snap index 72d833f6ddc41a..46e0b5263bf574 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal-member.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", @@ -21,12 +21,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/literal ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member-ref.snap index 1e2fd01623f03a..9f8dac8d5ff607 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member-ref.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "a", "node_id": 8 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member- ] }, { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 2, "name": "b", "node": "TSEnumMember", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/member- ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap index 39932e679199c7..17453e2b6f809d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.t "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", @@ -21,19 +21,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.t ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-ref.snap index fbac9bf6f8370e..892811c07130dc 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-ref.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-re "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", "references": [] }, { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 2, "name": "b", "node": "TSEnumMember", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/self-re ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 9 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap index cd8206a487e297..5678af2013403e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "Class(Foo)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Class | NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(Class | NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "Class(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 16 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", "node": "VariableDeclarator(usage)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap index 2dfe19e3f26592..bc6a2c6ccb106e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(Foo)", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function | NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(BlockScopedVariable | Function | NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "Function(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 17 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", "node": "VariableDeclarator(usage)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap index 71f393d8f8eaa5..93a703e03959a6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | NameSpaceModule)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | NameSpaceModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "usage", "node": "VariableDeclarator(usage)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap index 3852336ab4a728..7139693571fe31 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/exter "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/exter ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap index 7867f33f94f098..3c959604942b2d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/globa "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(global)", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | Ambient)", + "flags": "SymbolFlags(NameSpaceModule | Ambient)", "id": 0, "name": "global", "node": "TSModuleDeclaration(global)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap index baf6fd3b2afe1d..f1c90de7e291fd 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/impor "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(foo)", "symbols": [ { - "flag": "SymbolFlags(Import)", + "flags": "SymbolFlags(Import)", "id": 1, "name": "bar", "node": "ImportSpecifier(bar)", @@ -21,12 +21,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/impor ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | Ambient)", + "flags": "SymbolFlags(NameSpaceModule | Ambient)", "id": 0, "name": "foo", "node": "TSModuleDeclaration(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap index 62965ac9ab7d7f..0b64bcdaab9ea8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "Foo", "node": "VariableDeclarator(Foo)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 13 @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", "node": "VariableDeclarator(usage)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap index 903a745f7da750..ccf701d2635d70 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -21,24 +21,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 12 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 2, "name": "Foo", "node_id": 20 @@ -46,7 +46,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap index 4fed7ebaedc891..7635e4f06015a9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -21,19 +21,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", "node": "VariableDeclarator(unresolved)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap index 562430b03cf440..b99a2ffe18469c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self- "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, "node": "TSModuleDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", @@ -21,18 +21,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self- ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(NameSpaceModule | ValueModule)", + "flags": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", "node": "TSModuleDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 12 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-array-destructure.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-array-destructure.snap index e3e78d343a454f..f980842ac6175f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-array-destructure.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-array-destructure.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter()", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-default.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-default.snap index fea24a809a74f2..345fa5be31accb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-default.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-object-destructure.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-object-destructure.snap index 1b22b489d29aa8..1478cc209ddfff 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-object-destructure.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-object-destructure.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter()", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 15 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-rest.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-rest.snap index ec35786082a5f1..cc394e04d7e532 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-rest.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter-rest.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "BindingRestElement", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter.snap index 3c779ac6781e1d..9b4f7eddb45ed2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/parameter.snap @@ -7,19 +7,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", "node": "FormalParameter(a)", @@ -28,18 +28,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "foo", "node": "Function(foo)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-array-destructure.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-array-destructure.snap index f8ab95fd7661d1..fa197ad3dc3bab 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-array-destructure.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-array-destructure.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", "node": "VariableDeclarator()", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-const.snap index a8fc62cf0ba2de..52ec33c1c71bff 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-const.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-let.snap index d8a69d9f8ee6e8..538215cfca3449 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-let.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-object-destructure.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-object-destructure.snap index a6bb364b71f9bb..add02a6505ac7d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-object-destructure.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-object-destructure.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", "node": "VariableDeclarator()", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-var.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-var.snap index 951dd6dd295cc6..cb59a03bbe1472 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-var.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation/variable-var.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "x", "node": "VariableDeclarator(x)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/angle-bracket.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/angle-bracket.snap index e3b2251c4ad6da..d270587fa89ae7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/angle-bracket.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/angle-bracket.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 11 @@ -32,13 +32,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/as.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/as.snap index bfb32ec34f6777..84042bafffbac5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/as.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/as.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 11 @@ -32,13 +32,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap index ee37b74056beb4..440714c0c0efd5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read | Write)", + "flags": "ReferenceFlags(Read | Write)", "id": 0, "name": "x", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap index 7d0fd85670acf2..2a811323694d0c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read | Write)", + "flags": "ReferenceFlags(Read | Write)", "id": 0, "name": "x", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap index aec1ba6a392601..6dc5e2abffddb2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap @@ -5,18 +5,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ [ { "children": [], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable)", + "flags": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read | Write)", + "flags": "ReferenceFlags(Read | Write)", "id": 0, "name": "x", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/satisfies.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/satisfies.snap index 384620ad7c1b3e..6c7c379da9b3e9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/satisfies.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/satisfies.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 11 @@ -32,13 +32,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 14 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional-nested.snap index dc8b7739473b3d..fa0b3668e31dd4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional-nested.snap @@ -11,18 +11,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 3, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 5, "name": "U", "node_id": 33 @@ -32,18 +32,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "U", "node_id": 19 @@ -53,24 +53,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 9 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", "node_id": 23 @@ -80,12 +80,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Test", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional1.snap index 656c843b8422ad..4f0e710a2d7249 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional1.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "V", "node": "TSTypeParameter(V)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "V", "node_id": 15 @@ -30,18 +30,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 9 @@ -52,25 +52,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 3, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional2.snap index a66decddb9dbba..e6f00641c36c78 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional2.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 10 @@ -30,32 +30,32 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional3.snap index c9f07570b486bc..91f4ae635b63fd 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional3.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", "node": "TSTypeParameter(I)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", "node_id": 21 @@ -30,18 +30,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 9 @@ -51,12 +51,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Test", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional4.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional4.snap index 8362300d15bd92..54353842b0fa93 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional4.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional4.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", "node": "TSTypeParameter(I)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", "node_id": 19 @@ -30,18 +30,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 9 @@ -51,12 +51,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Test", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional5.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional5.snap index 38466122fff40e..2f0712164f7ba0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional5.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/conditional5.snap @@ -9,18 +9,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", "node": "TSTypeParameter(I)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", "node_id": 31 @@ -30,18 +30,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 9 @@ -51,12 +51,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Test", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/dual-type-value.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/dual-type-value.snap index 36319e9859f2cd..788fc026ad975d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/dual-type-value.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/dual-type-value.snap @@ -7,37 +7,37 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", "id": 0, "name": "dual", "node": "VariableDeclarator(dual)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "dual", "node_id": 12 }, { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "dual", "node_id": 16 @@ -45,14 +45,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "reference1", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "reference2", "node": "VariableDeclarator(reference2)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics1.snap index 914315179c530a..a0d79c5a45b7c1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics1.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 16 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 20 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics2.snap index 079928f6830eff..40bbec072da0a1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor-generics2.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 13 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor.snap index 158fb6caadd70e..10b6bd055bb787 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/constructor.snap @@ -7,37 +7,37 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics1.snap index 548d1df3546c29..623606e93c30a5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics1.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 16 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 20 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics2.snap index a96c0ab47cf242..484242faa971e3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function-generics2.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 13 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function1.snap index 70fcf9e4cd3a61..94fbfc97da2dc3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function1.snap @@ -7,37 +7,37 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 17 @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function2.snap index 0b72e01709beda..ca2a075f2a04dc 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/function2.snap @@ -7,24 +7,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "arg", "node": "VariableDeclarator(arg)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 0, "name": "arg", "node_id": 15 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/array-pattern.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/array-pattern.snap index d9774c7fe82c15..d365434afbfbd2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/array-pattern.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/array-pattern.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 14 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Fn", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/object-pattern.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/object-pattern.snap index ddefac9ae547c0..1e443f7a5c43bb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/object-pattern.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/object-pattern.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 21 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Fn", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/rest-element.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/rest-element.snap index ab22a72f657f87..8a687cd050516c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/rest-element.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/function/params/rest-element.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", "node": "TSTypeParameter(A)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 13 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Fn", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-qualifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-qualifier.snap index b8232604a99c3b..dc1c7aab40ea34 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-qualifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-qualifier.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-type-params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-type-params.snap index 77d72ff8979ad2..eded314b0385d5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-type-params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type-with-type-params.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Param", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "Param", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type.snap index 99d84172218f65..d579890c65febf 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/import-type.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access1.snap index d1ca619345a0b6..e5fd184f9645f6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access1.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access2.snap index 5d25c07a690928..b695f2bce0d902 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access2.snap @@ -7,38 +7,38 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -46,13 +46,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "K", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "K", "node_id": 21 @@ -60,7 +60,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access3.snap index 616cb9417a2117..a7cacb8b0147f0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/index-access3.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 18 @@ -39,13 +39,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "k", "node": "VariableDeclarator(k)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 1, "name": "k", "node_id": 21 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/infer-type-constraint.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/infer-type-constraint.snap index f56162a448fc6f..73df8fe8ff0d4d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/infer-type-constraint.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/infer-type-constraint.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSConditionalType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 3, "name": "Id", "node": "TSTypeParameter(Id)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "Id", "node_id": 28 @@ -37,18 +37,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -58,18 +58,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "X", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "X", "node_id": 25 @@ -77,7 +77,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Id", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage1.snap index fe91fe4815811a..215e226b21971c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage1.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSInterfaceDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Parent", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "Parent", "node_id": 6 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 1, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap index 05be7694d5e235..582f14da24cc35 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | TsModuleBlock)", + "flags": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, "node": "TSModuleDeclaration(Member)", "symbols": [ { - "flag": "SymbolFlags(Export | TypeAlias)", + "flags": "SymbolFlags(Export | TypeAlias)", "id": 2, "name": "unreferenced", "node": "TSTypeAliasDeclaration", @@ -37,32 +37,32 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 4, "node": "TSInterfaceDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "unreferenced", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(NameSpaceModule)", + "flags": "SymbolFlags(NameSpaceModule)", "id": 1, "name": "Member", "node": "TSModuleDeclaration(Member)", "references": [] }, { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 3, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface1.snap index 2cfef76e4509e7..ac91c856cca02f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "A", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface2.snap index 1a392117400ed2..aea84ad68053e1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface2.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "A", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 7 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "B", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type1.snap index c7d637ced7d838..d05e6e380f0d67 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type1.snap @@ -7,38 +7,38 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Color", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "Color", "node_id": 24 @@ -46,13 +46,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "Quantity", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "Quantity", "node_id": 21 @@ -60,7 +60,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "SeussFish", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type2.snap index f733bdaba4e90f..a7695b5c178f6a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type2.snap @@ -7,36 +7,36 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 14 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", "node_id": 21 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 5, "name": "T", "node_id": 28 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 7, "name": "T", "node_id": 35 @@ -47,24 +47,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "EnthusiasticGreeting", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 8, "name": "EnthusiasticGreeting", "node_id": 40 @@ -72,7 +72,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "HELLO", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type3.snap index 12495a190f57e0..6163592832982a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/literal-type3.snap @@ -7,26 +7,26 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 3, "node": "Function(setAlignment)", "symbols": [ { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", "node": "FormalParameter(value)", @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "VerticalAlignment", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "VerticalAlignment", "node_id": 28 @@ -54,13 +54,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "HorizontalAlignment", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "HorizontalAlignment", "node_id": 31 diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped-named.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped-named.snap index 9f2b4b2acb01ae..43f9fdc32565ec 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped-named.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped-named.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,24 +16,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMappedType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "k", "node": "TSTypeParameter(k)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "k", "node_id": 17 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 3, "name": "k", "node_id": 24 @@ -43,24 +43,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", "node_id": 21 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped.snap index a46e19d8e35e82..f5134827c430f6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/mapped.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMappedType", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "k", "node": "TSTypeParameter(k)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "k", "node_id": 21 @@ -37,24 +37,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 18 @@ -62,7 +62,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/qualified-name.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/qualified-name.snap index 0a12aeb6015e36..9751a695abfad3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/qualified-name.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/qualified-name.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 11 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call-generics.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call-generics.snap index cdaf22a51ab1c8..16a66dc197bd95 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call-generics.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call-generics.snap @@ -7,25 +7,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 14 @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 18 @@ -54,7 +54,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call.snap index 14ed97ab6e4a3b..a56f19848a3a96 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/call.snap @@ -7,37 +7,37 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 18 @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct-generics.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct-generics.snap index 23b2bab6fb471f..6b8aeeb22b8358 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct-generics.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct-generics.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSConstructSignatureDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", "node_id": 15 @@ -37,24 +37,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 19 @@ -62,7 +62,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct.snap index 0127a10d8c6736..b253db52e35491 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/construct.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,36 +16,36 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSConstructSignatureDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 15 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 19 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/index-sig.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/index-sig.snap index 0945a82b29c53c..2f44c67a6adebe 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/index-sig.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/index-sig.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 13 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name.snap index 1131cd9f138f96..87786dd7b876f3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,30 +16,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMethodSignature", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 14 @@ -47,19 +47,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 21 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", "node_id": 25 @@ -67,7 +67,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name2.snap index 38fd2a87840af3..dbc449d5dba010 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-computed-name2.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", @@ -24,30 +24,30 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMethodSignature", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 11 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-generics.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-generics.snap index d069b7f5ae8b02..06d71aaf92a1f7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-generics.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method-generics.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,18 +16,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMethodSignature", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "U", "node_id": 21 @@ -37,24 +37,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 17 @@ -62,7 +62,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method.snap index 249dda17a0ee8c..b008fdaad34a9f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/method.snap @@ -7,7 +7,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] @@ -16,36 +16,36 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSMethodSignature", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 17 }, { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 21 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name.snap index 20d9d939acac92..adeb38b62edf7e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", "node_id": 14 @@ -39,13 +39,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 18 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name2.snap index 21b69fb5da7cad..5b6304c581b019 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property-computed-name2.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSEnumDeclaration(Foo)", "symbols": [ { - "flag": "SymbolFlags(EnumMember)", + "flags": "SymbolFlags(EnumMember)", "id": 1, "name": "a", "node": "TSEnumMember", @@ -22,24 +22,24 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(RegularEnum)", + "flags": "SymbolFlags(RegularEnum)", "id": 0, "name": "Foo", "node": "TSEnumDeclaration(Foo)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "Foo", "node_id": 11 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property.snap index 1dae0db47fe231..ad90b22b7e12e3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/signatures/property.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 14 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled-rest.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled-rest.snap index 4400dd420331bb..e665af94512c21 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled-rest.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled-rest.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled.snap index 5cdfc02788bf50..0857198233d56a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-labelled.snap @@ -7,38 +7,38 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 3, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T1", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T1", "node_id": 14 @@ -46,13 +46,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T2", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T2", "node_id": 19 @@ -60,7 +60,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-rest.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-rest.snap index d7c31a16285020..937e5402e1db4f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-rest.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple-rest.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 9 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple.snap index bb6ea11f3efb84..917087ac605418 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/tuple.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 9 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/body-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/body-reference.snap index 880ca234efa019..f16b521d33db3d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/body-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/body-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/extends-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/extends-reference.snap index 2b02f98f640f1d..4969591d0573f6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/extends-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/extends-reference.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,18 +22,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 3, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", "node_id": 13 @@ -43,18 +43,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "A", "node": "TSInterfaceDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 9 @@ -62,7 +62,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 2, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-param-reference.snap index e0e6443d2b6f36..b862d828c4a5b5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration-extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration-extends.snap index 8597d5f1e114b6..b4bd25fb25d49d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration-extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration-extends.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Foo", "node": "TSInterfaceDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap index 9dc8006b619063..3133aa1fbefe50 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSInterfaceDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(Interface)", + "flags": "SymbolFlags(Interface)", "id": 0, "name": "Foo", "node": "TSInterfaceDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/tagged-template.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/tagged-template.snap index 9559fbdbf5f11a..de4c3d4e875521 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/tagged-template.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/tagged-template.snap @@ -7,26 +7,26 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 2, "node": "Function(div)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "T", "node": "TSTypeParameter(T)", "references": [] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "arg", "node": "FormalParameter(arg)", @@ -35,18 +35,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "StyledPaymentProps", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 1, "name": "StyledPaymentProps", "node_id": 31 @@ -54,13 +54,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 1, "name": "div", "node": "Function(div)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 0, "name": "div", "node_id": 26 @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "StyledPayment", "node": "VariableDeclarator(StyledPayment)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/body-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/body-reference.snap index c04875d134143e..66f8ff27e70849 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/body-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/body-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 8 @@ -28,12 +28,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Foo", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-param-reference.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-param-reference.snap index bf791690f590f2..08c1e6e12acad9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-param-reference.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-param-reference.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Foo", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.snap index 611419aec80533..92cb17d06468b9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration-extends.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 10 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", "node": "TSTypeParameter(U)", @@ -35,12 +35,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Foo", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap index e1aa6bc10989e0..5aaaf563f35fa3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap @@ -7,12 +7,12 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", @@ -22,25 +22,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "Foo", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-qualified.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-qualified.snap index f99f8c67238d5b..3eaf6724d46d79 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-qualified.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-qualified.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 0, "name": "x", "node_id": 21 @@ -39,14 +39,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-with-parameters.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-with-parameters.snap index bcac8c14ad887b..4f0addfc6d0880 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-with-parameters.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query-with-parameters.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode | Function)", + "flags": "ScopeFlags(StrictMode | Function)", "id": 1, "node": "Function(foo)", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 12 @@ -26,13 +26,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(FunctionScopedVariable)", + "flags": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "y", "node": "FormalParameter(y)", "references": [ { - "flag": "ReferenceFlags(Read)", + "flags": "ReferenceFlags(Read)", "id": 1, "name": "y", "node_id": 19 @@ -43,18 +43,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [ { - "flag": "SymbolFlags(TypeParameter)", + "flags": "SymbolFlags(TypeParameter)", "id": 4, "name": "T", "node": "TSTypeParameter(T)", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", "node_id": 33 @@ -64,18 +64,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | Function)", + "flags": "SymbolFlags(BlockScopedVariable | Function)", "id": 0, "name": "foo", "node": "Function(foo)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 2, "name": "foo", "node_id": 29 @@ -83,7 +83,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(Export | TypeAlias)", + "flags": "SymbolFlags(Export | TypeAlias)", "id": 3, "name": "Foo", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query.snap index 164dfa30f1c7f0..8f991540fbca0e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-query.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", + "flags": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", "node": "VariableDeclarator(x)", "references": [ { - "flag": "ReferenceFlags(Read | TSTypeQuery)", + "flags": "ReferenceFlags(Read | TSTypeQuery)", "id": 0, "name": "x", "node_id": 9 @@ -39,14 +39,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "T", "node": "TSTypeAliasDeclaration", "references": [] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 2, "name": "Unresolved", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type1.snap index 45d8cca42f58b5..5490d8d6fa6f93 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type1.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type2.snap index 5ba4ec24e86d28..5240edd1178619 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type2.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "A", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", "node_id": 9 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "B", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type3.snap index 4b1534ff488e4d..032392bc613251 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type3.snap @@ -7,31 +7,31 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] }, { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 2, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", "references": [ { - "flag": "ReferenceFlags(Type)", + "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", "node_id": 19 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ] }, { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 1, "name": "A", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/typeof-import-type-with-qualifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/typeof-import-type-with-qualifier.snap index 0e7c7ee220907c..ba98d3000c3c25 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/typeof-import-type-with-qualifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/typeof-import-type-with-qualifier.snap @@ -7,18 +7,18 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "children": [ { "children": [], - "flag": "ScopeFlags(StrictMode)", + "flags": "ScopeFlags(StrictMode)", "id": 1, "node": "TSTypeAliasDeclaration", "symbols": [] } ], - "flag": "ScopeFlags(StrictMode | Top)", + "flags": "ScopeFlags(StrictMode | Top)", "id": 0, "node": "Program", "symbols": [ { - "flag": "SymbolFlags(TypeAlias)", + "flags": "SymbolFlags(TypeAlias)", "id": 0, "name": "T", "node": "TSTypeAliasDeclaration", diff --git a/crates/oxc_semantic/tests/main.rs b/crates/oxc_semantic/tests/main.rs index 5b2ca8089e954b..4fb1cb2f41adab 100644 --- a/crates/oxc_semantic/tests/main.rs +++ b/crates/oxc_semantic/tests/main.rs @@ -21,7 +21,7 @@ fn get_scope_snapshot(semantic: &Semantic, scopes: impl Iterator result.push_str(&get_scope_snapshot(semantic, child_ids.iter().copied())); result.push(','); } - result.push_str(format!("\"flag\": \"{flags:?}\",").as_str()); + result.push_str(format!("\"flags\": \"{flags:?}\",").as_str()); result.push_str(format!("\"id\": {},", scope_id.index()).as_str()); result.push_str( format!( @@ -39,7 +39,7 @@ fn get_scope_snapshot(semantic: &Semantic, scopes: impl Iterator } result.push('{'); result.push_str( - format!("\"flag\": \"{:?}\",", semantic.symbols().get_flags(*symbol_id)).as_str(), + format!("\"flags\": \"{:?}\",", semantic.symbols().get_flags(*symbol_id)).as_str(), ); result.push_str(format!("\"id\": {},", symbol_id.index()).as_str()); result.push_str(format!("\"name\": {name:?},").as_str()); @@ -67,7 +67,8 @@ fn get_scope_snapshot(semantic: &Semantic, scopes: impl Iterator } let reference = &semantic.symbols().references[*reference_id]; result.push('{'); - result.push_str(format!("\"flag\": \"{:?}\",", reference.flags()).as_str()); + result + .push_str(format!("\"flags\": \"{:?}\",", reference.flags()).as_str()); result.push_str(format!("\"id\": {},", reference_id.index()).as_str()); result.push_str( format!("\"name\": {:?},", semantic.reference_name(reference)).as_str(),