From 4336a3275c5a3a6afcfe390d3660a0254bba32ef Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 21 Aug 2024 00:19:59 +0000 Subject: [PATCH] refactor(semantic): rename fields in snapshots from `flag` to `flags` (#5032) Part of #4991. --- .../block/inherited-scope.snap | 8 ++--- .../typescript-eslint/block/scope.snap | 10 +++--- .../call-expression/call-expression.snap | 16 ++++----- .../call-expression/type-parameters1.snap | 8 ++--- .../call-expression/type-parameters2.snap | 4 +-- .../catch/inherited-scope.snap | 14 ++++---- .../typescript-eslint/catch/scope.snap | 18 +++++----- .../abstract-accessor-property.snap | 12 +++---- .../class/declaration/abstract-property.snap | 12 +++---- .../class/declaration/abstract.snap | 12 +++---- .../accessor-property-type-annotation.snap | 12 +++---- .../class/declaration/accessor-property.snap | 12 +++---- .../class/declaration/computed-member.snap | 16 ++++----- .../class/declaration/extends-generic.snap | 20 +++++------ .../class/declaration/extends.snap | 12 +++---- .../declaration/generic-ref-extends.snap | 10 +++--- .../declaration/generic-ref-implements.snap | 10 +++--- .../class/declaration/generic.snap | 12 +++---- .../class/declaration/implements-generic.snap | 20 +++++------ .../class/declaration/implements.snap | 12 +++---- .../class/declaration/index-signature.snap | 14 ++++---- .../declaration/method-param-default.snap | 18 +++++----- .../class/declaration/method.snap | 28 +++++++-------- .../class/declaration/new.snap | 8 ++--- .../declaration/parameter-properties.snap | 36 +++++++++---------- .../class/declaration/private-identifier.snap | 8 ++--- .../properties-type-annotation.snap | 12 +++---- .../class/declaration/properties.snap | 12 +++---- .../class/declaration/static-block.snap | 8 ++--- .../declaration/static-external-ref.snap | 14 ++++---- .../declaration/static-with-constructor.snap | 16 ++++----- .../class/declaration/type-reference.snap | 22 ++++++------ .../class/expression/computed-member.snap | 16 ++++----- .../class/expression/extends.snap | 12 +++---- .../class/expression/method.snap | 28 +++++++-------- .../class/expression/new.snap | 8 ++--- .../expression/parameter-properties.snap | 36 +++++++++---------- .../class/expression/private-identifier.snap | 8 ++--- .../class/expression/properties.snap | 12 +++---- .../expression/self-reference-super.snap | 10 +++--- .../decorators/accessor.snap | 20 +++++------ .../class-deco-with-object-param.snap | 10 +++--- .../decorators/class-property.snap | 12 +++---- .../typescript-eslint/decorators/class.snap | 12 +++---- .../typescript-eslint/decorators/method.snap | 14 ++++---- .../decorators/parameter-property.snap | 20 +++++------ .../decorators/parameter.snap | 28 +++++++-------- .../decorators/typeof-this.snap | 16 ++++----- .../destructuring/array-assignment.snap | 14 ++++---- .../destructuring/array.snap | 16 ++++----- .../destructuring/object-assignment.snap | 6 ++-- .../destructuring/object.snap | 16 ++++----- .../typescript-eslint/export/all.snap | 2 +- .../export/default-type.snap | 8 ++--- .../typescript-eslint/export/default1.snap | 6 ++-- .../typescript-eslint/export/default2.snap | 6 ++-- .../typescript-eslint/export/default3.snap | 2 +- .../typescript-eslint/export/default4.snap | 4 +-- .../typescript-eslint/export/equals1.snap | 6 ++-- .../typescript-eslint/export/equals2.snap | 2 +- .../export/equals3-type.snap | 8 ++--- .../export/equals4-type.snap | 8 ++--- .../typescript-eslint/export/named-dual.snap | 8 ++--- .../export/named-source1.snap | 2 +- .../export/named-source2.snap | 2 +- .../typescript-eslint/export/named-type1.snap | 6 ++-- .../typescript-eslint/export/named1.snap | 4 +-- .../typescript-eslint/export/named2-type.snap | 8 ++--- .../typescript-eslint/export/named2.snap | 6 ++-- .../typescript-eslint/export/named3-type.snap | 8 ++--- .../typescript-eslint/export/named3.snap | 6 ++-- .../typescript-eslint/export/type-inline.snap | 8 ++--- .../typescript-eslint/export/type.snap | 8 ++--- .../readable-ref-body-shadow.snap | 14 ++++---- .../default-params/readable-ref-const.snap | 12 +++---- .../default-params/readable-ref-let.snap | 12 +++---- .../readable-ref-nested-body-shadow.snap | 16 ++++----- .../default-params/readable-ref-nested.snap | 14 ++++---- .../readable-ref-param-shadow.snap | 14 ++++---- .../default-params/readable-ref-partial.snap | 12 +++---- .../arrow/default-params/writable-ref.snap | 10 +++--- .../functions/arrow/inherited-scope.snap | 8 ++--- .../functions/arrow/no-body.snap | 8 ++--- .../functions/arrow/params.snap | 28 +++++++-------- .../functions/arrow/scope.snap | 14 ++++---- .../arrow/type-parameters/body-reference.snap | 12 +++---- .../type-parameters/param-reference.snap | 12 +++---- .../return-value-reference.snap | 10 +++--- .../type-parameters/type-param-reference.snap | 12 +++---- .../type-parameter-declaration.snap | 12 +++---- .../arrow/type-predicate-asserts1.snap | 8 ++--- .../arrow/type-predicate-asserts2.snap | 14 ++++---- .../functions/arrow/type-predicate1.snap | 10 +++--- .../functions/arrow/type-predicate2.snap | 16 ++++----- .../readable-ref-body-shadow.snap | 14 ++++---- .../default-params/readable-ref-const.snap | 12 +++---- .../default-params/readable-ref-let.snap | 12 +++---- .../readable-ref-nested-body-shadow.snap | 16 ++++----- .../default-params/readable-ref-nested.snap | 14 ++++---- .../readable-ref-param-shadow.snap | 14 ++++---- .../default-params/readable-ref-partial.snap | 12 +++---- .../default-params/writable-ref.snap | 10 +++--- .../function-declaration/inherited-scope.snap | 10 +++--- .../name-shadowed-in-body.snap | 12 +++---- .../function-declaration/overload.snap | 18 +++++----- .../function-declaration/params.snap | 30 ++++++++-------- .../functions/function-declaration/scope.snap | 14 ++++---- .../type-parameters/body-reference.snap | 12 +++---- .../type-parameters/param-reference.snap | 12 +++---- .../return-value-reference.snap | 10 +++--- .../type-parameters/type-param-reference.snap | 12 +++---- .../type-parameter-declaration.snap | 12 +++---- .../type-predicate-asserts1.snap | 8 ++--- .../type-predicate-asserts2.snap | 14 ++++---- .../function-declaration/type-predicate1.snap | 10 +++--- .../function-declaration/type-predicate2.snap | 16 ++++----- .../function-expression/anonymous.snap | 6 ++-- .../readable-ref-body-shadow.snap | 14 ++++---- .../default-params/readable-ref-const.snap | 12 +++---- .../default-params/readable-ref-let.snap | 12 +++---- .../readable-ref-nested-body-shadow.snap | 16 ++++----- .../default-params/readable-ref-nested.snap | 14 ++++---- .../readable-ref-param-shadow.snap | 14 ++++---- .../default-params/readable-ref-partial.snap | 12 +++---- .../default-params/writable-ref.snap | 10 +++--- .../function-expression/inherited-scope.snap | 10 +++--- .../functions/function-expression/params.snap | 30 ++++++++-------- .../functions/function-expression/scope.snap | 14 ++++---- .../type-parameters/body-reference.snap | 12 +++---- .../type-parameters/param-reference.snap | 12 +++---- .../return-value-reference.snap | 10 +++--- .../type-parameters/type-param-reference.snap | 12 +++---- .../type-parameter-declaration.snap | 12 +++---- .../type-predicate-asserts1.snap | 8 ++--- .../type-predicate-asserts2.snap | 14 ++++---- .../function-expression/type-predicate1.snap | 10 +++--- .../function-expression/type-predicate2.snap | 16 ++++----- .../global-resolution/module/class.snap | 8 ++--- .../global-resolution/module/function.snap | 8 ++--- .../module/variable-decl-const.snap | 8 ++--- .../module/variable-decl-let.snap | 8 ++--- .../module/variable-decl-var.snap | 8 ++--- .../global-resolution/script/class.snap | 8 ++--- .../global-resolution/script/function.snap | 8 ++--- .../script/variable-decl-const.snap | 8 ++--- .../script/variable-decl-let.snap | 8 ++--- .../script/variable-decl-var.snap | 8 ++--- .../typescript-eslint/implicit/implicit1.snap | 4 +-- .../typescript-eslint/import/default.snap | 12 +++---- .../typescript-eslint/import/equals1.snap | 6 ++-- .../typescript-eslint/import/equals2.snap | 8 ++--- .../typescript-eslint/import/named-alias.snap | 12 +++---- .../typescript-eslint/import/named.snap | 12 +++---- .../typescript-eslint/import/namespace.snap | 12 +++---- .../import/type-default-value.snap | 10 +++--- .../import/type-default.snap | 12 +++---- .../import/type-inline-value.snap | 10 +++--- .../typescript-eslint/import/type-inline.snap | 12 +++---- .../import/type-named-value.snap | 10 +++--- .../typescript-eslint/import/type-named.snap | 12 +++---- .../type-arguments1.snap | 22 ++++++------ .../type-arguments2.snap | 28 +++++++-------- .../jsx/attribute-spread.snap | 6 ++-- .../typescript-eslint/jsx/attribute.snap | 8 ++--- .../typescript-eslint/jsx/children.snap | 6 ++-- .../jsx/component-intrinsic-name.snap | 6 ++-- .../jsx/component-namespaced1.snap | 10 +++--- .../jsx/component-namespaced2.snap | 10 +++--- .../typescript-eslint/jsx/component.snap | 8 ++--- .../jsx/factory/default-jsxFragmentName.snap | 6 ++-- .../factory/default-jsxPragma-fragment.snap | 4 +-- .../jsx/factory/default-jsxPragma.snap | 4 +-- .../jsx/factory/jsxFragmentName.snap | 6 ++-- .../factory/jsxPragma-jsxFragmentName.snap | 8 ++--- .../jsx/factory/jsxPragma.snap | 6 ++-- .../jsx/fragment-children.snap | 6 ++-- .../typescript-eslint/jsx/fragment.snap | 2 +- .../jsx/generic-type-param.snap | 8 ++--- .../jsx/namespaced-attribute.snap | 26 +++++++------- .../fixtures/typescript-eslint/jsx/text.snap | 4 +-- .../jsx/this-jsxidentifier.snap | 12 +++---- .../member-expression/member-expression.snap | 14 ++++---- .../new-expression/new-expression.snap | 12 +++---- .../new-expression/type-parameters1.snap | 8 ++--- .../new-expression/type-parameters2.snap | 4 +-- .../ts-enum/external-ref.snap | 10 +++--- .../ts-enum/literal-member-ref.snap | 12 +++---- .../ts-enum/literal-member.snap | 8 ++--- .../typescript-eslint/ts-enum/member-ref.snap | 12 +++---- .../typescript-eslint/ts-enum/scope.snap | 10 +++--- .../typescript-eslint/ts-enum/self-ref.snap | 12 +++---- .../declaration-merging/class-namespace.snap | 14 ++++---- .../function-namespace.snap | 14 ++++---- .../namespace-variable.snap | 10 +++--- .../ts-module/external-ref.snap | 10 +++--- .../ts-module/global-augmentation.snap | 6 ++-- .../typescript-eslint/ts-module/import.snap | 8 ++--- .../ts-module/name-shadowed-in-body.snap | 12 +++---- .../ts-module/namespace.snap | 14 ++++---- .../typescript-eslint/ts-module/scope.snap | 10 +++--- .../typescript-eslint/ts-module/self-ref.snap | 10 +++--- .../parameter-array-destructure.snap | 14 ++++---- .../type-annotation/parameter-default.snap | 14 ++++---- .../parameter-object-destructure.snap | 14 ++++---- .../type-annotation/parameter-rest.snap | 14 ++++---- .../type-annotation/parameter.snap | 14 ++++---- .../variable-array-destructure.snap | 10 +++--- .../type-annotation/variable-const.snap | 10 +++--- .../type-annotation/variable-let.snap | 10 +++--- .../variable-object-destructure.snap | 10 +++--- .../type-annotation/variable-var.snap | 10 +++--- .../type-assertion/angle-bracket.snap | 12 +++---- .../typescript-eslint/type-assertion/as.snap | 12 +++---- .../assignment/angle-bracket-assignment.snap | 6 ++-- .../assignment/as-assignment.snap | 6 ++-- .../assignment/non-null-assignment.snap | 6 ++-- .../type-assertion/satisfies.snap | 12 +++---- .../type-declaration/conditional-nested.snap | 24 ++++++------- .../type-declaration/conditional1.snap | 20 +++++------ .../type-declaration/conditional2.snap | 16 ++++----- .../type-declaration/conditional3.snap | 16 ++++----- .../type-declaration/conditional4.snap | 16 ++++----- .../type-declaration/conditional5.snap | 16 ++++----- .../type-declaration/dual-type-value.snap | 16 ++++----- .../function/constructor-generics1.snap | 16 ++++----- .../function/constructor-generics2.snap | 16 ++++----- .../function/constructor.snap | 14 ++++---- .../function/function-generics1.snap | 16 ++++----- .../function/function-generics2.snap | 16 ++++----- .../type-declaration/function/function1.snap | 14 ++++---- .../type-declaration/function/function2.snap | 10 +++--- .../function/params/array-pattern.snap | 10 +++--- .../function/params/object-pattern.snap | 10 +++--- .../function/params/rest-element.snap | 10 +++--- .../import-type-with-qualifier.snap | 6 ++-- .../import-type-with-type-params.snap | 12 +++---- .../type-declaration/import-type.snap | 6 ++-- .../type-declaration/index-access1.snap | 12 +++---- .../type-declaration/index-access2.snap | 18 +++++----- .../type-declaration/index-access3.snap | 16 ++++----- .../infer-type-constraint.snap | 22 ++++++------ .../type-declaration/interface-heritage1.snap | 12 +++---- .../type-declaration/interface-heritage2.snap | 18 +++++----- .../type-declaration/interface1.snap | 6 ++-- .../type-declaration/interface2.snap | 12 +++---- .../type-declaration/literal-type1.snap | 18 +++++----- .../type-declaration/literal-type2.snap | 22 ++++++------ .../type-declaration/literal-type3.snap | 18 +++++----- .../type-declaration/mapped-named.snap | 20 +++++------ .../type-declaration/mapped.snap | 18 +++++----- .../type-declaration/qualified-name.snap | 12 +++---- .../signatures/call-generics.snap | 16 ++++----- .../type-declaration/signatures/call.snap | 14 ++++---- .../signatures/construct-generics.snap | 18 +++++----- .../signatures/construct.snap | 16 ++++----- .../signatures/index-sig.snap | 12 +++---- .../signatures/method-computed-name.snap | 20 +++++------ .../signatures/method-computed-name2.snap | 16 ++++----- .../signatures/method-generics.snap | 18 +++++----- .../type-declaration/signatures/method.snap | 16 ++++----- .../signatures/property-computed-name.snap | 16 ++++----- .../signatures/property-computed-name2.snap | 14 ++++---- .../type-declaration/signatures/property.snap | 12 +++---- .../type-declaration/tuple-labelled-rest.snap | 12 +++---- .../type-declaration/tuple-labelled.snap | 18 +++++----- .../type-declaration/tuple-rest.snap | 12 +++---- .../type-declaration/tuple.snap | 12 +++---- .../interface/body-reference.snap | 10 +++--- .../interface/extends-reference.snap | 18 +++++----- .../interface/type-param-reference.snap | 12 +++---- .../type-parameter-declaration-extends.snap | 12 +++---- .../interface/type-parameter-declaration.snap | 12 +++---- .../type-parameters/tagged-template.snap | 20 +++++------ .../type-decl/body-reference.snap | 10 +++--- .../type-decl/type-param-reference.snap | 12 +++---- .../type-parameter-declaration-extends.snap | 12 +++---- .../type-decl/type-parameter-declaration.snap | 12 +++---- .../type-query-qualified.snap | 14 ++++---- .../type-query-with-parameters.snap | 24 ++++++------- .../type-declaration/type-query.snap | 14 ++++---- .../type-declaration/type1.snap | 6 ++-- .../type-declaration/type2.snap | 12 +++---- .../type-declaration/type3.snap | 12 +++---- .../typeof-import-type-with-qualifier.snap | 6 ++-- crates/oxc_semantic/tests/main.rs | 7 ++-- 285 files changed, 1737 insertions(+), 1736 deletions(-) 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 378803cd72faf..d01a9b090ec39 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 65d4035567b42..60881d915dd1a 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 e074f808ef948..dff558aa270c8 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 a172fa84e044d..d41773961fa3d 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 2e7046928bc87..000fe66c775c6 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 6d1ce6fe13257..672a365e2010d 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 96300969e2c88..68bd90a6a0278 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 501439bab4b3c..a329cdbc03be0 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 2915fa56e1135..419902f012b5c 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 bb644bd247dd6..1f7932c8f8d08 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 45fb474785cc1..6fc03a5f19ea3 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 cfd2961d3f527..2e920cbf6d1da 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 8642634e65762..1f0bd5cd3e8f8 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 392cbdfd87a48..a5f1b49805b5e 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 883a64d63186c..67d103fa0830a 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 ad30bc83fcf1a..2125174907a1f 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 253f7df9d907d..9c7e304f362aa 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 0ea3f0c286ae6..87fe799c9b7aa 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 17b159b96b6a3..1cb550334a1e8 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 de678c0fa15d7..c2bd40f0537e1 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 7fa74d450897a..80078927fb84e 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 a9adf82253136..4efeb626f273d 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 0e7d09a9c73ea..77b3be26f3672 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 aa363c49cf423..15a054ce6fde7 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 82fdd1372397f..361af3463aeb6 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 5a388a8e13fe2..a602d0e9a0792 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 9f2097bcd1872..157fc06e20a10 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 c242055994f6e..fa9bfa043cdc1 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 3c201547dd72d..1310c4a7309aa 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 c59e2a4433c02..cbe06c376ca62 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 5dcd3a541cd19..abb6fa265b5b4 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 da42f37708367..c0baec6ebdf79 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 06f8961b12673..08bcb11eea76f 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 238160065d788..461fc9d5f12b6 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 4c2eaaaa4f7f8..d1e29b924c12e 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 687c70af69cd3..36f9a0319ab2f 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 c075288387b1e..20f7c9317d760 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 8d2e2fed98896..ee8df17250289 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 f6d1d7b69f3f1..fc6306dbfd3bd 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 05efe356f417b..3b0b3b6bc6ae9 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 a07420cbf5f26..7182d401c4d2c 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 4cfb08b3ef40e..3b999827f7629 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 5e6015ef03988..cd69c8c2c9d1b 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 4fd0f6dd71198..b33c550224729 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 86c8ebcf15693..d38d84c767e14 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 43a9cfb40af4b..cb0730ec84cfb 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 7c6dcd464a19c..4e141923fb767 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 e46386ed44ef6..f6cc701f600fd 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 299cdf074c996..28745125f2860 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 7d4a97a9ed9d8..307397e681709 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 290ffe0c9a154..a049800c1c1c9 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 016442f3937a0..9a7b4692132f8 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 e8f4e62367840..f8c36e2a31231 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 ffa325b9cebb2..6cdfbae6ea3b9 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 36dd5d2d6bc51..709803d979776 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 12d6fa7c01e5e..81f4192048aee 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 80a2a9580d646..b0233d7707c74 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 a40491081c29b..a7d2f099a96d9 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 68c199d0df02c..515a036b392ef 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 0fa93cfcbf9c7..25533a24e5450 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 e917f7ca5934d..34e0a81687101 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 62e0b30ee8ce6..99c9f058c1a70 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 1f70da5fd079d..ba7ae07fd0083 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 edfea98dc0c85..9d6d80e5df7aa 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 c7037b3b501e6..1004ca8cc9a00 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 ef5dc75537681..7ad9b50c64c86 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 3ad06c1c470c5..b891dbb734ebf 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 f1a3a2b9789f2..b84e5d458e92c 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 4187ca769eaf9..2cdc7a8907e15 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 9e3c146c0ea3a..65a5c15c56a6f 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 7f78ce885f8bf..524ec742e1aaf 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 c5206451cad75..3b59ff94b9d64 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 5fa49f5470024..358088be9f127 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 0d338dd3e9821..cf9a4be1bc48b 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 7347a0f188750..9f92b2eb4440a 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 fcb470c1bf4c9..cf7b31adcbbcf 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 768601f99df46..6a25abd95d310 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 f3313f405d26f..d1d5f04c64ffa 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 89e083f165e86..3f6b337fc2210 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 e4996314cf435..75afde02ee168 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 ec06ee23532af..8a71b0c966968 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 b516a4f4e838d..5a13650149671 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 b55b4dd6c4254..9a90c0267dc2c 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 a5b69f0585893..412d7876f9143 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 d3de38aff514e..6a760fa558855 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 17738b2433795..8c26f3de77856 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 1dcea9d4617e5..e13e12041c785 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 37956753b13c7..77dffc7b2c3fc 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 d4057838bf44b..2614cd3ecd698 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 7c4906fe2602b..c7ac24261a457 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 011e5884426fc..f1bbb07757331 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 a0b23521559b2..dc76b47bb4bde 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 936794e027c7e..ab0e0ce6dce32 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 d1541e7bbbdc2..34e32379fb01f 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 e450a515a76a5..27be84dc7ccaf 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 bcfcf03e528ff..432baaf1cb80d 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 915cb21b9bb22..7cf5a71093a6b 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 30d3518979aed..708e049cfc666 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 7fa88595daf9d..aef6211b34834 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 1f53c59049f14..1e6ab01afaf40 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 ee34687bdbdb0..bc5b83eb18d08 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 7b930597d0061..32bddae967682 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 d0327c9a9d25b..fed5a7d4efea5 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 12f62ccb8ca51..32a71a7bf288c 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 4ef2f948ee543..218a1693c2eb7 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 5e3f509ef86c0..8454e6ca058de 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 303fa3ccc8b68..483c4a2886b77 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 88fcc22053fbb..e1a67a821a5a4 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 4e3a815b11825..1ebdeb7f44319 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 33c2c9b6351ec..3943886b74aa6 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 371085bf8f5d3..923e25c29afb2 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 e2c3325037f71..c15854bfd3e98 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 5a477758493ba..80fb5306cab95 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 baf3601407b3e..13797f1b1e692 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 0cf30c58f215f..7be0be3be21be 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 06ba51f86fe70..302be84114da9 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 abb4ddd671af4..284c799cb53a2 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 f99c849a684a8..2416a1181741d 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 1b921013c4397..5fcc29d364747 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 8d4ea41713212..487dfcb91e807 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 18b2d848f794c..a5ab237cdee20 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 29a33d523283c..ed7c1c570f6f7 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 b309626f813b0..56ddbe741b780 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 353fa06ff60f0..e973e8ecff12b 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 5d6aec448878f..f0bcbf32d619f 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 da8a361b6a40e..3893c73a64065 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 ac879db7f4fbb..423b01f09c548 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 25cd9f4bcf4ef..ff199e2c16798 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 77fe355e0e5f3..9b0b87c7bbf3a 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 68f453f1656d0..1276d9d233a9b 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 bb11b9749fbae..97b59ed01506a 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 31e8db405d280..a656c00292844 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 690f1d64366bb..3ab5b100acf69 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 7e0d0e35e972d..4d872bb526690 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 bee4e90871684..955fc46fc884a 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 ee9b273fc7e24..76744ce378b7e 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 2bdc917d7f942..4d08341b3343b 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 1721ed86cf1c2..8aecdbd2ba162 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 1594d3ee50b66..dad9fa2f746da 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 2dc9b05afdede..d4a18b6bb0412 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 8424063717656..43e15f5efc9cc 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 c394c815b1342..66ec302f1c2fd 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 e7a140a9bb494..d480eb98a6a78 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 9328881d5aadc..b8f8e89c64c9a 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 b40500374b175..7d2f3941b95d2 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 029ce69ab1474..ed061693060e3 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 026269f2adbbe..1688b6e33673c 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 42cf0d5dcdaf8..bde0fac318822 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 318f1033460af..3c49fcc856a11 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 43c512722feb0..4fdeea3f00866 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 afb90e7050386..a9eb7bb23c940 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 83e331749d4a4..059cbf7925d03 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 440a76084da4c..a52d5f3603b84 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 00c5eae3d091a..8c273be13cc7d 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 95f718490fec0..6e08802eb578b 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 ffd53965711bc..9483645510cf1 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 a78b5d134372b..8133c64fb029c 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 fed81924f29ee..4cf159d634999 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 6f305f03d0cee..062de274b0073 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 8c3e20d956db9..95b5580e62b2d 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 06db56e35e60d..7da73b6aeee16 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 4e79ac0f07849..90a455626ba56 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 fab925c193bf0..d5ec8c791cc28 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 62659a54bce86..ddd545510f9c5 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 6bc925935d60d..e4486b0379990 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 8e44501e48694..d97b6456caa8e 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 60dd0900ccec6..082d1abe11d04 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 83efddbc32a99..48d43c0ba9619 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 ec934d773888f..99abc80f145b7 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 a6709a90d55d1..7d80a582c340c 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 a86a34842f8f7..bd30d648fdac0 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 669fd0871f82b..592127f9d4c81 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 38b533d236c9d..e2a589e7e9a11 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 d094ff5ced540..779a7d95d8990 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 d75c2e4b2a701..0831414e3e11e 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 a1560c008b3d4..7832045eb0d6d 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 1237b9f8d465e..7abe88fb03cf5 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 49015bfe5ff33..4c8d0eb836e4b 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 62b85768dced1..852e9b9b9e345 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 fbfc986797f83..9d8722f133f64 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 7426ab8bd6169..afb3eacafe8d4 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 e9ce9524427dd..faf83b0938f4e 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 ae0b2427f0683..1668230b3beba 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 30e61d827bb52..03a8a318eb245 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 4627b796aff49..e6cbc57a7a42a 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 0e33ea5ecd3a8..1c267c5377021 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 8da779e08f5b7..b6fd9caa84365 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 72d833f6ddc41..46e0b5263bf57 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 1e2fd01623f03..9f8dac8d5ff60 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 39932e679199c..17453e2b6f809 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 fbac9bf6f8370..892811c07130d 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 cd8206a487e29..5678af2013403 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 2dfe19e3f2659..bc6a2c6ccb106 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 71f393d8f8eaa..93a703e03959a 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 3852336ab4a72..7139693571fe3 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 7867f33f94f09..3c959604942b2 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 baf6fd3b2afe1..f1c90de7e291f 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 62965ac9ab7d7..0b64bcdaab9ea 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 903a745f7da75..ccf701d2635d7 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 4fed7ebaedc89..7635e4f06015a 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 562430b03cf44..b99a2ffe18469 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 e3e78d343a454..f980842ac6175 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 fea24a809a74f..345fa5be31acc 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 1b22b489d29aa..1478cc209ddff 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 ec35786082a5f..cc394e04d7e53 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 3c779ac6781e1..9b4f7eddb45ed 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 f8ab95fd7661d..fa197ad3dc3ba 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 a8fc62cf0ba2d..52ec33c1c71bf 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 d8a69d9f8ee6e..538215cfca344 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 a6bb364b71f9b..add02a6505ac7 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 951dd6dd295cc..cb59a03bbe147 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 e3b2251c4ad6d..d270587fa89ae 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 bfb32ec34f677..84042bafffbac 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 ee37b74056beb..440714c0c0efd 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 7d0fd85670acf..2a811323694d0 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 aec1ba6a39260..6dc5e2abffddb 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 384620ad7c1b3..6c7c379da9b3e 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 dc8b7739473b3..fa0b3668e31dd 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 656c843b8422a..4f0e710a2d724 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 a66decddb9dbb..e6f00641c36c7 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 c9f07570b486b..91f4ae635b63f 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 8362300d15bd9..54353842b0fa9 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 38466122fff40..2f0712164f7ba 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 36319e9859f2c..788fc026ad975 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 914315179c530..a0d79c5a45b7c 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 079928f6830ef..40bbec072da0a 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 158fb6caadd70..10b6bd055bb78 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 548d1df3546c2..623606e93c30a 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 a96c0ab47cf24..484242faa971e 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 70fcf9e4cd3a6..94fbfc97da2dc 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 0b72e01709bed..ca2a075f2a04d 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 d9774c7fe82c1..d365434afbfbd 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 ddefac9ae547c..1e443f7a5c43b 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 ab22a72f657f8..8a687cd050516 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 b8232604a99c3..dc1c7aab40ea3 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 77d72ff8979ad..eded314b0385d 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 99d84172218f6..d579890c65feb 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 d1ca619345a0b..e5fd184f9645f 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 5d25c07a69092..b695f2bce0d90 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 616cb9417a211..a7cacb8b0147f 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 f56162a448fc6..73df8fe8ff0d4 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 fe91fe4815811..215e226b21971 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 05be7694d5e23..582f14da24cc3 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 2cfef76e4509e..ac91c856cca02 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 1a392117400ed..aea84ad68053e 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 c7d637ced7d83..d05e6e380f0d6 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 f733bdaba4e90..a7695b5c178f6 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 12495a190f57e..6163592832982 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 9f2b4b2acb01a..43f9fdc32565e 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 a46e19d8e35e8..f5134827c430f 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 0a12aeb6015e3..9751a695abfad 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 cdaf22a51ab1c..16a66dc197bd9 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 14ed97ab6e4a3..a56f19848a3a9 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 23b2bab6fb471..6b8aeeb22b835 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 0127a10d8c673..b253db52e3549 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 0945a82b29c53..2f44c67a6adeb 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 1131cd9f138f9..87786dd7b876f 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 38fd2a87840af..dbc449d5dba01 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 d069b7f5ae8b0..06d71aaf92a1f 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 249dda17a0ee8..b008fdaad34a9 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 20d9d939acac9..adeb38b62edf7 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 21b69fb5da7ca..5b6304c581b01 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 1dae0db47fe23..ad90b22b7e12e 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 4400dd420331b..e665af94512c2 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 5cdfc02788bf5..0857198233d56 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 d7c31a1628502..937e5402e1db4 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 bb6ea11f3efb8..917087ac60541 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 880ca234efa01..f16b521d33db3 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 2b02f98f640f1..4969591d0573f 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 e0e6443d2b6f3..b862d828c4a5b 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 8597d5f1e114b..b4bd25fb25d49 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 9dc8006b61906..3133aa1fbefe5 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 9559fbdbf5f11..de4c3d4e87552 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 c04875d134143..66f8ff27e7084 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 bf791690f590f..08c1e6e12acad 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 611419aec8053..92cb17d06468b 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 e1aa6bc10989e..5aaaf563f35fa 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 f99f8c67238d5..3eaf6724d46d7 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 bcac8c14ad887..4f0addfc6d088 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 164dfa30f1c7f..8f991540fbca0 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 45d8cca42f58b..5490d8d6fa6f9 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 5ba4ec24e86d2..5240edd117861 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 4b1534ff488e4..032392bc61325 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 0e7c7ee220907..ba98d3000c3c2 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 5b2ca8089e954..4fb1cb2f41ada 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(),