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 e792cd2820c24..34ff2879debde 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 @@ -25,13 +25,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "foo", "node_id": 15 }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 3, "name": "foo", "node_id": 21 } @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 2, "name": "a", "node_id": 20 } 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 ea70222e3f889..078e0d0fc2b7e 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 11 } 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 ef88d646efb7a..94b6488076ee2 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer2", "node_id": 18 } 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 5716e1afc53f8..6a11fff251bd0 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 @@ -61,7 +61,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 17 } 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 4623ccc6ce957..bfdb2d259790f 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 @@ -19,7 +19,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "A", "node_id": 11 } 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 ace2059f52cb7..22c16c07f1fb1 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 @@ -19,7 +19,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "A", "node_id": 12 } 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 512924afdb5f0..095093a5d1f4d 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 @@ -61,7 +61,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 17 } 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 1494562ea13df..f70a069d6947d 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 @@ -46,7 +46,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "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 4474cb6bdd4fc..77bfbb5511233 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 @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "printerName", "node_id": 35 } 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 b300b7fb7551e..b2e1a361eacfa 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 3, "name": "a", "node_id": 41 } @@ -96,7 +96,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer", "node_id": 30 } @@ -110,7 +110,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "Outer", "node_id": 38 } 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 40510aeadfc3c..efc1c32c7cae5 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer2", "node_id": 20 } 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 1d9324706e69a..e390b075f4079 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 3, "name": "a", "node_id": 43 } @@ -96,7 +96,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer", "node_id": 32 } @@ -110,7 +110,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "Outer", "node_id": 40 } 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 014250be4ac68..9f5eaec38c78f 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 @@ -31,7 +31,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "references": [ { "flag": "ReferenceFlag(Write)", - "id": 0, + "id": 1, "name": "b", "node_id": 20 } @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "references": [ { "flag": "ReferenceFlag(Write)", - "id": 0, + "id": 2, "name": "c", "node_id": 24 } 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 c8ad38dd2961f..5e6324a5177b3 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/o "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 2, "name": "obj", "node_id": 23 } 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 4922f74f4af4d..fe1f26262ba40 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 2, "name": "a", "node_id": 34 } @@ -88,7 +88,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer", "node_id": 29 } 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 e5d974e5b8566..3a69816c02c82 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 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "arg", "node_id": 23 } 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 6e43ab57525c2..f15b6d6487f4a 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 2, "name": "a", "node_id": 34 } @@ -88,7 +88,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer", "node_id": 29 } 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 0a6c11b8c21bc..f15da220370ce 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 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "arg", "node_id": 21 } 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 0d76e62202488..377cb8c6a64f6 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 2, "name": "a", "node_id": 36 } @@ -88,7 +88,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "outer", "node_id": 31 } 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 b589c387f5db7..6c6b5c451def2 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 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "arg", "node_id": 23 } 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 509ee76c74305..330e62dd51b6b 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "T", "node_id": 28 } @@ -62,7 +62,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "Foo", "node_id": 24 } @@ -76,7 +76,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "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 f87324181ba7c..c16b63c00d7a1 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 @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "value", "node_id": 19 } @@ -69,13 +69,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", - "id": 0, + "id": 2, "name": "makeBox", "node_id": 27 }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 4, "name": "makeBox", "node_id": 36 } 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 b5b5a7cd62d9f..0e66e6c554c85 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-s "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "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 460641293cedb..97c0f107258d2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.t "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "x", "node_id": 17 } 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 9c109e4601456..870160ef06374 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.ts "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 2, "name": "child", "node_id": 14 } 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 6ff4c5bd4a1e0..fed488bb0ee16 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-typ "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "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 b2f584eb297ff..f73b1b1237919 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 @@ -26,7 +26,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 3, "name": "props", "node_id": 57 } @@ -68,7 +68,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "FooProps", "node_id": 45 } 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 6897e27bb7651..36855937f0883 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "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 4809ea72e00a6..49092d737e3ae 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 @@ -25,7 +25,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 11 } 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 066cec803da15..a01f28198f66b 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names }, { "flag": "ReferenceFlag(Read)", - "id": 1, + "id": 2, "name": "Foo", "node_id": 20 } 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 709efe41de730..c9327a890fa3c 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "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 9818be4ef8e0a..3fc5d4e3c72f8 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "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 19d5ab37099d3..ee6a4e74ba8ea 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "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 31733dc48a34f..4f5d8dade4415 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 @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 5, "name": "U", "node_id": 33 } @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "U", "node_id": 19 } @@ -71,7 +71,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio }, { "flag": "ReferenceFlag(Type)", - "id": 1, + "id": 3, "name": "T", "node_id": 23 } 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 8c2aea5050632..5337622f49dc9 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "V", "node_id": 15 } 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 8f2664863419b..1e0eeaafbd7e7 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "I", "node_id": 21 } 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 821b355f9ec46..af06f92ca829c 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "I", "node_id": 19 } 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 38b4a2cd3887c..7cb74b13e9304 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "I", "node_id": 31 } 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 8674176b00a38..7e6ec35aaddff 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 20 } 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 b8c428eef007d..b2b6c73a38e65 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 17 } 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 275dce2133f4b..7635e0ec26ba5 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 20 } 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 8b84c9854f56a..a454073002ee8 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 17 } 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 3fc5c47c3d448..576f52257c892 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 @@ -32,7 +32,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "Param", "node_id": 14 } 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 db9c0a421cfb9..e1a844bdcd51d 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 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "K", "node_id": 21 } 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 b117cf70dee59..c76086755dd67 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 @@ -46,7 +46,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", - "id": 0, + "id": 1, "name": "k", "node_id": 21 } 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 42550774d3ee8..5330971251239 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "Id", "node_id": 28 } @@ -70,7 +70,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "X", "node_id": 25 } 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 59f6aba4697db..af09101c8db84 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "Color", "node_id": 24 } 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 6493ae0ce5e8f..ba375677a2d4c 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 @@ -19,25 +19,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 14 }, { "flag": "ReferenceFlag(Type)", - "id": 1, + "id": 3, "name": "T", "node_id": 21 }, { "flag": "ReferenceFlag(Type)", - "id": 2, + "id": 5, "name": "T", "node_id": 28 }, { "flag": "ReferenceFlag(Type)", - "id": 3, + "id": 7, "name": "T", "node_id": 35 } @@ -65,7 +65,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 8, "name": "EnthusiasticGreeting", "node_id": 40 } 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 29b1c1aa89029..f101ed9366148 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 @@ -61,7 +61,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "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 dce07d120922a..844c7e83338d5 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 @@ -28,13 +28,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "k", "node_id": 17 }, { "flag": "ReferenceFlag(Type)", - "id": 1, + "id": 3, "name": "k", "node_id": 24 } @@ -61,7 +61,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "T", "node_id": 21 } 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 616cf785e1c53..8bd5b1bcacfa5 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 2, "name": "k", "node_id": 21 } @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 18 } 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 b401f938e0f4d..146d20714eba0 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 18 } 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 27c596ccdae57..e6064559de85e 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 @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 19 } 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 490b5f6295e8c..87b0910f52b9a 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 @@ -54,13 +54,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 21 }, { "flag": "ReferenceFlag(Type)", - "id": 1, + "id": 2, "name": "T", "node_id": 25 } 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 d9112a99b3903..005f6b6082487 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "U", "node_id": 21 } 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 a9a5e314634ca..fd8856f7ad30c 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 @@ -46,7 +46,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 18 } 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 276ee3a06bef6..aef846243fc7d 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 @@ -53,7 +53,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T2", "node_id": 19 } 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 aee4855614865..2fc898b82257f 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "T", "node_id": 13 } 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 22e929c27103d..9c6cd6f1df863 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 @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Type)", - "id": 0, + "id": 1, "name": "StyledPaymentProps", "node_id": 31 } 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 0c962ae33942a..7561c89a0895e 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 @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Read)", - "id": 0, + "id": 1, "name": "y", "node_id": 19 } @@ -69,7 +69,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", - "id": 0, + "id": 2, "name": "foo", "node_id": 29 } diff --git a/crates/oxc_semantic/tests/main.rs b/crates/oxc_semantic/tests/main.rs index 112438059d259..85a2833eff310 100644 --- a/crates/oxc_semantic/tests/main.rs +++ b/crates/oxc_semantic/tests/main.rs @@ -68,7 +68,7 @@ fn get_scope_snapshot(semantic: &Semantic, scopes: impl Iterator let reference = &semantic.symbols().references[*reference_id]; result.push('{'); result.push_str(format!("\"flag\": \"{:?}\",", reference.flag()).as_str()); - result.push_str(format!("\"id\": {index:?},").as_str()); + result.push_str(format!("\"id\": {},", reference_id.index()).as_str()); result.push_str( format!("\"name\": {:?},", semantic.reference_name(reference)).as_str(), );