From 754c05a7ff57b63e78e01922346726820e67b0d9 Mon Sep 17 00:00:00 2001 From: camchenry <1514176+camchenry@users.noreply.github.com> Date: Thu, 3 Jul 2025 02:30:03 +0000 Subject: [PATCH] refactor(ast): remove `AstKind` for `TSTypeName` (#11990) - part of https://github.com/oxc-project/oxc/issues/11490 --- crates/oxc_ast/src/ast_kind_impl.rs | 1 - crates/oxc_ast/src/generated/ast_kind.rs | 85 +++++++++---------- crates/oxc_ast_visit/src/generated/visit.rs | 4 +- .../oxc_ast_visit/src/generated/visit_mut.rs | 4 +- .../oxc_formatter/src/generated/ast_nodes.rs | 37 ++++---- .../src/generated/format_write.rs | 2 +- .../src/rules/eslint/no_unused_vars/usage.rs | 2 +- crates/oxc_semantic/src/builder.rs | 45 +++++----- .../oxc/ts/functions/return-type.snap | 4 +- .../interfaces/property-with-type-import.snap | 6 +- .../oxc/ts/namespaces/value-module.snap | 4 +- .../call-expression/type-parameters1.snap | 2 +- .../abstract-accessor-property.snap | 2 +- .../class/declaration/abstract-property.snap | 2 +- .../accessor-property-type-annotation.snap | 2 +- .../class/declaration/extends-generic.snap | 2 +- .../declaration/generic-ref-extends.snap | 2 +- .../declaration/generic-ref-implements.snap | 2 +- .../class/declaration/implements-generic.snap | 4 +- .../class/declaration/implements.snap | 2 +- .../class/declaration/index-signature.snap | 4 +- .../declaration/parameter-properties.snap | 4 +- .../properties-type-annotation.snap | 2 +- .../class/declaration/type-reference.snap | 6 +- .../expression/parameter-properties.snap | 4 +- .../export/equals4-type.snap | 2 +- .../arrow/type-parameters/body-reference.snap | 2 +- .../type-parameters/param-reference.snap | 2 +- .../return-value-reference.snap | 2 +- .../type-parameters/type-param-reference.snap | 2 +- .../arrow/type-predicate-asserts2.snap | 2 +- .../functions/arrow/type-predicate2.snap | 4 +- .../type-parameters/body-reference.snap | 2 +- .../type-parameters/param-reference.snap | 2 +- .../return-value-reference.snap | 2 +- .../type-parameters/type-param-reference.snap | 2 +- .../type-predicate-asserts2.snap | 2 +- .../function-declaration/type-predicate2.snap | 4 +- .../type-parameters/body-reference.snap | 2 +- .../type-parameters/param-reference.snap | 2 +- .../return-value-reference.snap | 2 +- .../type-parameters/type-param-reference.snap | 2 +- .../type-predicate-asserts2.snap | 2 +- .../function-expression/type-predicate2.snap | 4 +- .../typescript-eslint/import/default.snap | 2 +- .../typescript-eslint/import/equals2.snap | 2 +- .../typescript-eslint/import/named-alias.snap | 2 +- .../typescript-eslint/import/named.snap | 2 +- .../typescript-eslint/import/namespace.snap | 2 +- .../import/type-default-value.snap | 2 +- .../import/type-default.snap | 2 +- .../import/type-inline-value.snap | 2 +- .../typescript-eslint/import/type-inline.snap | 2 +- .../import/type-named-value.snap | 2 +- .../typescript-eslint/import/type-named.snap | 2 +- .../type-arguments1.snap | 8 +- .../type-arguments2.snap | 10 +-- .../jsx/generic-type-param.snap | 2 +- .../jsx/namespaced-attribute.snap | 4 +- .../new-expression/type-parameters1.snap | 2 +- .../parameter-array-destructure.snap | 2 +- .../type-annotation/parameter-default.snap | 2 +- .../parameter-object-destructure.snap | 2 +- .../type-annotation/parameter-rest.snap | 2 +- .../type-annotation/parameter.snap | 2 +- .../variable-array-destructure.snap | 2 +- .../type-annotation/variable-const.snap | 2 +- .../type-annotation/variable-let.snap | 2 +- .../variable-object-destructure.snap | 2 +- .../type-annotation/variable-var.snap | 2 +- .../type-assertion/angle-bracket.snap | 4 +- .../typescript-eslint/type-assertion/as.snap | 2 +- .../type-assertion/satisfies.snap | 2 +- .../type-declaration/conditional-nested.snap | 8 +- .../type-declaration/conditional1.snap | 4 +- .../type-declaration/conditional2.snap | 2 +- .../type-declaration/conditional3.snap | 4 +- .../type-declaration/conditional4.snap | 4 +- .../type-declaration/conditional5.snap | 4 +- .../type-declaration/dual-type-value.snap | 4 +- .../function/constructor-generics1.snap | 4 +- .../function/constructor-generics2.snap | 4 +- .../function/constructor.snap | 4 +- .../function/function-generics1.snap | 4 +- .../function/function-generics2.snap | 4 +- .../type-declaration/function/function1.snap | 4 +- .../type-declaration/function/function2.snap | 2 +- .../function/params/array-pattern.snap | 2 +- .../function/params/object-pattern.snap | 2 +- .../function/params/rest-element.snap | 2 +- .../import-type-with-type-params.snap | 2 +- .../type-declaration/index-access1.snap | 2 +- .../type-declaration/index-access2.snap | 4 +- .../type-declaration/index-access3.snap | 4 +- .../infer-type-constraint.snap | 6 +- .../type-declaration/interface2.snap | 2 +- .../type-declaration/literal-type1.snap | 4 +- .../type-declaration/literal-type2.snap | 10 +-- .../type-declaration/literal-type3.snap | 4 +- .../type-declaration/mapped-named.snap | 6 +- .../type-declaration/mapped.snap | 4 +- .../type-declaration/qualified-name.snap | 2 +- .../signatures/call-generics.snap | 4 +- .../type-declaration/signatures/call.snap | 4 +- .../signatures/construct-generics.snap | 4 +- .../signatures/construct.snap | 4 +- .../signatures/index-sig.snap | 2 +- .../signatures/method-computed-name.snap | 4 +- .../signatures/method-generics.snap | 4 +- .../type-declaration/signatures/method.snap | 4 +- .../signatures/property-computed-name.snap | 2 +- .../type-declaration/signatures/property.snap | 2 +- .../type-declaration/tuple-labelled-rest.snap | 2 +- .../type-declaration/tuple-labelled.snap | 4 +- .../type-declaration/tuple-rest.snap | 2 +- .../type-declaration/tuple.snap | 2 +- .../interface/body-reference.snap | 2 +- .../interface/extends-reference.snap | 2 +- .../interface/type-param-reference.snap | 2 +- .../type-parameter-declaration-extends.snap | 2 +- .../type-parameters/tagged-template.snap | 2 +- .../type-decl/body-reference.snap | 2 +- .../type-decl/type-param-reference.snap | 2 +- .../type-parameter-declaration-extends.snap | 2 +- .../type-query-qualified.snap | 2 +- .../type-query-with-parameters.snap | 8 +- .../type-declaration/type-query.snap | 2 +- .../type-declaration/type2.snap | 2 +- .../type-declaration/type3.snap | 2 +- tasks/ast_tools/src/generators/ast_kind.rs | 1 - 130 files changed, 266 insertions(+), 277 deletions(-) diff --git a/crates/oxc_ast/src/ast_kind_impl.rs b/crates/oxc_ast/src/ast_kind_impl.rs index 781ce3fc5dedf..13a9fb476c075 100644 --- a/crates/oxc_ast/src/ast_kind_impl.rs +++ b/crates/oxc_ast/src/ast_kind_impl.rs @@ -382,7 +382,6 @@ impl AstKind<'_> { Self::TSNamespaceExportDeclaration(_) => "TSNamespaceExportDeclaration".into(), Self::TSImportEqualsDeclaration(_) => "TSImportEqualsDeclaration".into(), Self::TSCallSignatureDeclaration(_) => "TSCallSignatureDeclaration".into(), - Self::TSTypeName(n) => format!("TSTypeName({n})").into(), Self::TSExternalModuleReference(_) => "TSExternalModuleReference".into(), Self::TSQualifiedName(n) => format!("TSQualifiedName({n})").into(), Self::TSInterfaceDeclaration(_) => "TSInterfaceDeclaration".into(), diff --git a/crates/oxc_ast/src/generated/ast_kind.rs b/crates/oxc_ast/src/generated/ast_kind.rs index a8b5951a6dd78..a7edf246fbe50 100644 --- a/crates/oxc_ast/src/generated/ast_kind.rs +++ b/crates/oxc_ast/src/generated/ast_kind.rs @@ -166,45 +166,44 @@ pub enum AstType { TSObjectKeyword = 149, TSBigIntKeyword = 150, TSTypeReference = 151, - TSTypeName = 152, - TSQualifiedName = 153, - TSTypeParameterInstantiation = 154, - TSTypeParameter = 155, - TSTypeParameterDeclaration = 156, - TSTypeAliasDeclaration = 157, - TSClassImplements = 158, - TSInterfaceDeclaration = 159, - TSInterfaceBody = 160, - TSPropertySignature = 161, - TSIndexSignature = 162, - TSCallSignatureDeclaration = 163, - TSMethodSignature = 164, - TSConstructSignatureDeclaration = 165, - TSIndexSignatureName = 166, - TSInterfaceHeritage = 167, - TSTypePredicate = 168, - TSModuleDeclaration = 169, - TSModuleBlock = 170, - TSTypeLiteral = 171, - TSInferType = 172, - TSTypeQuery = 173, - TSImportType = 174, - TSConstructorType = 175, - TSMappedType = 176, - TSTemplateLiteralType = 177, - TSAsExpression = 178, - TSSatisfiesExpression = 179, - TSTypeAssertion = 180, - TSImportEqualsDeclaration = 181, - TSExternalModuleReference = 182, - TSNonNullExpression = 183, - Decorator = 184, - TSExportAssignment = 185, - TSNamespaceExportDeclaration = 186, - TSInstantiationExpression = 187, - JSDocNullableType = 188, - JSDocNonNullableType = 189, - JSDocUnknownType = 190, + TSQualifiedName = 152, + TSTypeParameterInstantiation = 153, + TSTypeParameter = 154, + TSTypeParameterDeclaration = 155, + TSTypeAliasDeclaration = 156, + TSClassImplements = 157, + TSInterfaceDeclaration = 158, + TSInterfaceBody = 159, + TSPropertySignature = 160, + TSIndexSignature = 161, + TSCallSignatureDeclaration = 162, + TSMethodSignature = 163, + TSConstructSignatureDeclaration = 164, + TSIndexSignatureName = 165, + TSInterfaceHeritage = 166, + TSTypePredicate = 167, + TSModuleDeclaration = 168, + TSModuleBlock = 169, + TSTypeLiteral = 170, + TSInferType = 171, + TSTypeQuery = 172, + TSImportType = 173, + TSConstructorType = 174, + TSMappedType = 175, + TSTemplateLiteralType = 176, + TSAsExpression = 177, + TSSatisfiesExpression = 178, + TSTypeAssertion = 179, + TSImportEqualsDeclaration = 180, + TSExternalModuleReference = 181, + TSNonNullExpression = 182, + Decorator = 183, + TSExportAssignment = 184, + TSNamespaceExportDeclaration = 185, + TSInstantiationExpression = 186, + JSDocNullableType = 187, + JSDocNonNullableType = 188, + JSDocUnknownType = 189, } /// Untyped AST Node Kind @@ -373,7 +372,6 @@ pub enum AstKind<'a> { TSObjectKeyword(&'a TSObjectKeyword) = AstType::TSObjectKeyword as u8, TSBigIntKeyword(&'a TSBigIntKeyword) = AstType::TSBigIntKeyword as u8, TSTypeReference(&'a TSTypeReference<'a>) = AstType::TSTypeReference as u8, - TSTypeName(&'a TSTypeName<'a>) = AstType::TSTypeName as u8, TSQualifiedName(&'a TSQualifiedName<'a>) = AstType::TSQualifiedName as u8, TSTypeParameterInstantiation(&'a TSTypeParameterInstantiation<'a>) = AstType::TSTypeParameterInstantiation as u8, @@ -589,7 +587,6 @@ impl GetSpan for AstKind<'_> { Self::TSObjectKeyword(it) => it.span(), Self::TSBigIntKeyword(it) => it.span(), Self::TSTypeReference(it) => it.span(), - Self::TSTypeName(it) => it.span(), Self::TSQualifiedName(it) => it.span(), Self::TSTypeParameterInstantiation(it) => it.span(), Self::TSTypeParameter(it) => it.span(), @@ -787,7 +784,6 @@ impl GetAddress for AstKind<'_> { Self::TSObjectKeyword(it) => Address::from_ptr(it), Self::TSBigIntKeyword(it) => Address::from_ptr(it), Self::TSTypeReference(it) => Address::from_ptr(it), - Self::TSTypeName(it) => it.address(), Self::TSQualifiedName(it) => Address::from_ptr(it), Self::TSTypeParameterInstantiation(it) => Address::from_ptr(it), Self::TSTypeParameter(it) => Address::from_ptr(it), @@ -1595,11 +1591,6 @@ impl<'a> AstKind<'a> { if let Self::TSTypeReference(v) = self { Some(v) } else { None } } - #[inline] - pub fn as_ts_type_name(self) -> Option<&'a TSTypeName<'a>> { - if let Self::TSTypeName(v) = self { Some(v) } else { None } - } - #[inline] pub fn as_ts_qualified_name(self) -> Option<&'a TSQualifiedName<'a>> { if let Self::TSQualifiedName(v) = self { Some(v) } else { None } diff --git a/crates/oxc_ast_visit/src/generated/visit.rs b/crates/oxc_ast_visit/src/generated/visit.rs index 7dd53e1a1ddbf..7372d33154377 100644 --- a/crates/oxc_ast_visit/src/generated/visit.rs +++ b/crates/oxc_ast_visit/src/generated/visit.rs @@ -3555,13 +3555,11 @@ pub mod walk { #[inline] pub fn walk_ts_type_name<'a, V: Visit<'a>>(visitor: &mut V, it: &TSTypeName<'a>) { - let kind = AstKind::TSTypeName(visitor.alloc(it)); - visitor.enter_node(kind); + // No `AstKind` for this type match it { TSTypeName::IdentifierReference(it) => visitor.visit_identifier_reference(it), TSTypeName::QualifiedName(it) => visitor.visit_ts_qualified_name(it), } - visitor.leave_node(kind); } #[inline] diff --git a/crates/oxc_ast_visit/src/generated/visit_mut.rs b/crates/oxc_ast_visit/src/generated/visit_mut.rs index 1f6050b306773..f876e78ba8df2 100644 --- a/crates/oxc_ast_visit/src/generated/visit_mut.rs +++ b/crates/oxc_ast_visit/src/generated/visit_mut.rs @@ -3743,13 +3743,11 @@ pub mod walk_mut { #[inline] pub fn walk_ts_type_name<'a, V: VisitMut<'a>>(visitor: &mut V, it: &mut TSTypeName<'a>) { - let kind = AstType::TSTypeName; - visitor.enter_node(kind); + // No `AstType` for this type match it { TSTypeName::IdentifierReference(it) => visitor.visit_identifier_reference(it), TSTypeName::QualifiedName(it) => visitor.visit_ts_qualified_name(it), } - visitor.leave_node(kind); } #[inline] diff --git a/crates/oxc_formatter/src/generated/ast_nodes.rs b/crates/oxc_formatter/src/generated/ast_nodes.rs index 7f8fd6e824350..3c34323fbc764 100644 --- a/crates/oxc_formatter/src/generated/ast_nodes.rs +++ b/crates/oxc_formatter/src/generated/ast_nodes.rs @@ -179,7 +179,6 @@ pub enum AstNodes<'a> { TSObjectKeyword(&'a AstNode<'a, TSObjectKeyword>), TSBigIntKeyword(&'a AstNode<'a, TSBigIntKeyword>), TSTypeReference(&'a AstNode<'a, TSTypeReference<'a>>), - TSTypeName(&'a AstNode<'a, TSTypeName<'a>>), TSQualifiedName(&'a AstNode<'a, TSQualifiedName<'a>>), TSTypeParameterInstantiation(&'a AstNode<'a, TSTypeParameterInstantiation<'a>>), TSTypeParameter(&'a AstNode<'a, TSTypeParameter<'a>>), @@ -2470,7 +2469,6 @@ impl<'a> AstNodes<'a> { Self::TSObjectKeyword(n) => n.span(), Self::TSBigIntKeyword(n) => n.span(), Self::TSTypeReference(n) => n.span(), - Self::TSTypeName(n) => n.span(), Self::TSQualifiedName(n) => n.span(), Self::TSTypeParameterInstantiation(n) => n.span(), Self::TSTypeParameter(n) => n.span(), @@ -2667,7 +2665,6 @@ impl<'a> AstNodes<'a> { Self::TSObjectKeyword(n) => n.parent, Self::TSBigIntKeyword(n) => n.parent, Self::TSTypeReference(n) => n.parent, - Self::TSTypeName(n) => n.parent, Self::TSQualifiedName(n) => n.parent, Self::TSTypeParameterInstantiation(n) => n.parent, Self::TSTypeParameter(n) => n.parent, @@ -2864,7 +2861,6 @@ impl<'a> AstNodes<'a> { Self::TSObjectKeyword(n) => SiblingNode::from(n.inner), Self::TSBigIntKeyword(n) => SiblingNode::from(n.inner), Self::TSTypeReference(n) => SiblingNode::from(n.inner), - Self::TSTypeName(n) => n.parent.as_sibling_node(), Self::TSQualifiedName(n) => SiblingNode::from(n.inner), Self::TSTypeParameterInstantiation(n) => SiblingNode::from(n.inner), Self::TSTypeParameter(n) => SiblingNode::from(n.inner), @@ -3061,7 +3057,6 @@ impl<'a> AstNodes<'a> { Self::TSObjectKeyword(_) => "TSObjectKeyword", Self::TSBigIntKeyword(_) => "TSBigIntKeyword", Self::TSTypeReference(_) => "TSTypeReference", - Self::TSTypeName(_) => "TSTypeName", Self::TSQualifiedName(_) => "TSQualifiedName", Self::TSTypeParameterInstantiation(_) => "TSTypeParameterInstantiation", Self::TSTypeParameter(_) => "TSTypeParameter", @@ -11497,7 +11492,7 @@ impl<'a> AstNode<'a, TSTypeReference<'a>> { impl<'a> AstNode<'a, TSTypeName<'a>> { #[inline] pub fn as_ast_nodes(&self) -> &AstNodes<'a> { - let parent = self.allocator.alloc(AstNodes::TSTypeName(transmute_self(self))); + let parent = self.parent; let node = match self.inner { TSTypeName::IdentifierReference(s) => { AstNodes::IdentifierReference(self.allocator.alloc(AstNode { @@ -12829,12 +12824,15 @@ impl<'a> AstNode<'a, TSTypeQueryExprName<'a>> { })) } it @ match_ts_type_name!(TSTypeQueryExprName) => { - AstNodes::TSTypeName(self.allocator.alloc(AstNode { - inner: it.to_ts_type_name(), - parent, - allocator: self.allocator, - following_node: self.following_node, - })) + return self + .allocator + .alloc(AstNode { + inner: it.to_ts_type_name(), + parent, + allocator: self.allocator, + following_node: self.following_node, + }) + .as_ast_nodes(); } }; self.allocator.alloc(node) @@ -13375,12 +13373,15 @@ impl<'a> AstNode<'a, TSModuleReference<'a>> { })) } it @ match_ts_type_name!(TSModuleReference) => { - AstNodes::TSTypeName(self.allocator.alloc(AstNode { - inner: it.to_ts_type_name(), - parent, - allocator: self.allocator, - following_node: self.following_node, - })) + return self + .allocator + .alloc(AstNode { + inner: it.to_ts_type_name(), + parent, + allocator: self.allocator, + following_node: self.following_node, + }) + .as_ast_nodes(); } }; self.allocator.alloc(node) diff --git a/crates/oxc_formatter/src/generated/format_write.rs b/crates/oxc_formatter/src/generated/format_write.rs index 13fa1732242af..13210cc8397da 100644 --- a/crates/oxc_formatter/src/generated/format_write.rs +++ b/crates/oxc_formatter/src/generated/format_write.rs @@ -2030,7 +2030,7 @@ impl<'a> FormatWrite<'a> for AstNode<'a, TSTypeName<'a>> { #[inline] fn write(&self, f: &mut Formatter<'_, 'a>) -> FormatResult<()> { let allocator = self.allocator; - let parent = allocator.alloc(AstNodes::TSTypeName(transmute_self(self))); + let parent = self.parent; match self.inner { TSTypeName::IdentifierReference(inner) => allocator .alloc(AstNode:: { diff --git a/crates/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs b/crates/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs index ba63575492c3f..f9d3d971f9b3e 100644 --- a/crates/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs +++ b/crates/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs @@ -847,7 +847,7 @@ impl<'a> Symbol<'_, 'a> { loop { node = match node.kind() { AstKind::TSTypeQuery(_) => return true, - AstKind::TSQualifiedName(_) | AstKind::TSTypeName(_) => { + AstKind::TSQualifiedName(_) | AstKind::IdentifierReference(_) => { if let Some(parent) = self.nodes().parent_node(node.id()) { parent } else { diff --git a/crates/oxc_semantic/src/builder.rs b/crates/oxc_semantic/src/builder.rs index d023cc435bbf7..a5897e13f242c 100644 --- a/crates/oxc_semantic/src/builder.rs +++ b/crates/oxc_semantic/src/builder.rs @@ -2034,28 +2034,28 @@ impl<'a> SemanticBuilder<'a> { // ^^^ avoid treat T as a value and TSTypeQuery self.current_reference_flags -= ReferenceFlags::ValueAsType; } - AstKind::TSTypeName(_) => { - match self.nodes.parent_kind(self.current_node_id) { - Some( - // import A = a; - // ^ - AstKind::TSImportEqualsDeclaration(_), - ) => { - self.current_reference_flags = ReferenceFlags::Read; - } - Some(AstKind::TSQualifiedName(_)) => { - // import A = a.b - // ^^^ Keep the current reference flag - } - _ => { - // Handled in `AstKind::PropertySignature` or `AstKind::TSTypeQuery` - if !self.current_reference_flags.is_value_as_type() { - self.current_reference_flags = ReferenceFlags::Type; - } - } + AstKind::TSClassImplements(_) | AstKind::TSTypeReference(_) => { + // type X = SomeType; + // ^^^^^^^^ + // + // class A implements B {} + // ^^^^^^^^^^^^ + // + // let X: import('module').Y; + // ^^^^^^^^^^^^^^^^ + if !self.current_reference_flags.is_value_as_type() { + self.current_reference_flags = ReferenceFlags::Type; } } AstKind::IdentifierReference(ident) => { + if let Some(AstKind::TSImportType(_)) = self.nodes.parent_kind(self.current_node_id) + { + // let X: import('module').X + // ^ + // We don't want to treat this as a value reference. + self.current_reference_flags = ReferenceFlags::Type; + } + self.reference_identifier(ident); } AstKind::LabeledStatement(stmt) => { @@ -2093,8 +2093,11 @@ impl<'a> SemanticBuilder<'a> { AstKind::CatchParameter(_) => { self.resolve_references_for_current_scope(); } - AstKind::TSTypeName(_) => { - self.current_reference_flags -= ReferenceFlags::Type; + AstKind::IdentifierReference(_) | AstKind::TSQualifiedName(_) => { + if matches!(self.nodes.parent_kind(self.current_node_id), Some(AstKind::TSImportType(_) | AstKind::TSTypeReference(_) | AstKind::TSClassImplements(_))) { + // Clear the type reference flags that were set in `enter_kind` for these kinds. + self.current_reference_flags -= ReferenceFlags::Type; + } } AstKind::TSTypeQuery(_) // Clear the reference flags that are set in AstKind::PropertySignature diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/functions/return-type.snap b/crates/oxc_semantic/tests/fixtures/oxc/ts/functions/return-type.snap index 598ac29baa574..ce4e0cd1ef096 100644 --- a/crates/oxc_semantic/tests/fixtures/oxc/ts/functions/return-type.snap +++ b/crates/oxc_semantic/tests/fixtures/oxc/ts/functions/return-type.snap @@ -73,13 +73,13 @@ input_file: crates/oxc_semantic/tests/fixtures/oxc/ts/functions/return-type.ts "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 27 + "node_id": 25 } ] }, diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-type-import.snap b/crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-type-import.snap index a0244ff0865de..0167d56933df2 100644 --- a/crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-type-import.snap +++ b/crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-type-import.snap @@ -47,7 +47,7 @@ input_file: crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-t "flags": "ReferenceFlags(Type)", "id": 2, "name": "X", - "node_id": 29 + "node_id": 28 } ] }, @@ -61,13 +61,13 @@ input_file: crates/oxc_semantic/tests/fixtures/oxc/ts/interfaces/property-with-t "flags": "ReferenceFlags(Type)", "id": 1, "name": "B", - "node_id": 20 + "node_id": 19 }, { "flags": "ReferenceFlags(Type)", "id": 3, "name": "B", - "node_id": 34 + "node_id": 32 } ] }, diff --git a/crates/oxc_semantic/tests/fixtures/oxc/ts/namespaces/value-module.snap b/crates/oxc_semantic/tests/fixtures/oxc/ts/namespaces/value-module.snap index 84b0229d8d0b5..cac6ac6535153 100644 --- a/crates/oxc_semantic/tests/fixtures/oxc/ts/namespaces/value-module.snap +++ b/crates/oxc_semantic/tests/fixtures/oxc/ts/namespaces/value-module.snap @@ -57,13 +57,13 @@ input_file: crates/oxc_semantic/tests/fixtures/oxc/ts/namespaces/value-module.ts "flags": "ReferenceFlags(Type)", "id": 0, "name": "N1", - "node_id": 22 + "node_id": 20 }, { "flags": "ReferenceFlags(Read)", "id": 1, "name": "N1", - "node_id": 28 + "node_id": 26 } ] }, 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 d41773961fa3d..9fe6c4f1a05d6 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 11 + "node_id": 10 } ] } 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 a329cdbc03be0..ce85060bf5afc 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 419902f012b5c..e48c72832b590 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 6fc03a5f19ea3..455d87faa2061 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 0f9343d1a53f2..116c7d6897b60 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 @@ -63,7 +63,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 16 + "node_id": 15 } ] }, 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 f7dd25dac9402..3ebfeeb1011f9 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 1, "name": "A", - "node_id": 10 + "node_id": 9 } ] } 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 9c7e304f362aa..e8c30ab5a8861 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 1, "name": "A", - "node_id": 12 + "node_id": 10 } ] } 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 2b234d01fa091..a09d8e2f1a4f2 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 @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 14 + "node_id": 13 } ] }, @@ -63,7 +63,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 18 + "node_id": 16 } ] }, 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 8532dc48ca56c..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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 8 + "node_id": 7 } ] }, 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 57be66abd1ed7..3a0fa3c6f84d9 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "Bar", - "node_id": 18 + "node_id": 17 } ] }, @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 1, "name": "Foo", - "node_id": 28 + "node_id": 26 } ] } 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 361af3463aeb6..aef0f21253450 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 @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Read)", "id": 3, "name": "a", - "node_id": 41 + "node_id": 40 } ] }, @@ -112,7 +112,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 2, "name": "Outer", - "node_id": 38 + "node_id": 37 } ] }, 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 157fc06e20a10..207b0a33e3a9d 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 03a95a3fb56c9..623134c6b5cb7 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 @@ -41,19 +41,19 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 8 + "node_id": 7 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "A", - "node_id": 13 + "node_id": 11 }, { "flags": "ReferenceFlags(Read)", "id": 2, "name": "A", - "node_id": 17 + "node_id": 15 } ] }, 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 20f7c9317d760..dd4f8be63d8ee 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 @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flags": "ReferenceFlags(Read)", "id": 3, "name": "a", - "node_id": 43 + "node_id": 42 } ] }, @@ -112,7 +112,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flags": "ReferenceFlags(Type)", "id": 2, "name": "Outer", - "node_id": 40 + "node_id": 39 } ] }, 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 99c9f058c1a70..14e427085eb93 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals4- "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] } 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 78298d6cdc34f..af835cfdd92f9 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 16 + "node_id": 15 } ] }, 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 55ab7bf2ba9d7..b2a731b7fdc0c 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 6eb897b0cca7e..4a68fdecda128 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] } 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 439eaea9c281f..996519c13177a 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] }, 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 494711849334e..7036dd1b24725 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 19 + "node_id": 18 } ] }, 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 5dc681b9eadf6..7ee3ecebb65e0 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", - "node_id": 24 + "node_id": 23 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 19 + "node_id": 18 } ] }, 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 0bbad9fe7a138..32497ffe136df 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 8c8956aa75b10..ff9e2693eb4ee 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] }, 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 4c076df43be78..154c7ef957c33 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] } 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 06893a4c85e10..d1012264e043f 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 76788fa27bf18..4961e6ef4af80 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 17 + "node_id": 16 } ] }, 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 a1956b9f81940..906dd0a30da20 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", - "node_id": 22 + "node_id": 21 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 17 + "node_id": 16 } ] }, 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 9b0b87c7bbf3a..00fb561923057 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 16 + "node_id": 15 } ] }, 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 1276d9d233a9b..a59ad913480c6 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 97b59ed01506a..cabf9d11e4b54 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] } 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 a656c00292844..9807db4cb3436 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] }, 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 e9de28de4391e..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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 19 + "node_id": 18 } ] }, 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 98f589334955c..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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Read)", "id": 1, "name": "arg", - "node_id": 24 + "node_id": 23 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 19 + "node_id": 18 } ] }, 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 3c49fcc856a11..51108c43b94d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default.snap @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/default. "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", - "node_id": 12 + "node_id": 11 } ] }, 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 1124554149ab8..a1068feacc2b5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap @@ -19,7 +19,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2. "flags": "ReferenceFlags(Read)", "id": 0, "name": "x", - "node_id": 8 + "node_id": 7 } ] }, 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 059cbf7925d03..d5748851f1569 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 @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-al "flags": "ReferenceFlags(Type)", "id": 1, "name": "t", - "node_id": 13 + "node_id": 12 } ] }, 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 a52d5f3603b84..5ad5320b4ea82 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.ts "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", - "node_id": 13 + "node_id": 12 } ] }, 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 8c273be13cc7d..5a6e83d26c621 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespace.snap @@ -33,7 +33,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/namespac "flags": "ReferenceFlags(Type)", "id": 1, "name": "v", - "node_id": 12 + "node_id": 11 } ] }, 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 6375fba23590c..e77d9122dae17 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def "flags": "ReferenceFlags(Type)", "id": 0, "name": "foo", - "node_id": 10 + "node_id": 9 } ] }, 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 9483645510cf1..c6016d6d4c118 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 c5daf1cd6d17c..a4af28df208c0 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "flags": "ReferenceFlags(Type)", "id": 0, "name": "foo", - "node_id": 11 + "node_id": 10 } ] }, 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 4cf159d634999..9f08957dce4d9 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 526b983cc3e07..b04c49222f50f 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "flags": "ReferenceFlags(Type)", "id": 0, "name": "foo", - "node_id": 11 + "node_id": 10 } ] }, 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 95b5580e62b2d..b2af37770e68c 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 7da73b6aeee16..efad734891d38 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 } ] } @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", - "node_id": 28 + "node_id": 26 } ] } @@ -64,7 +64,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Read)", "id": 1, "name": "Foo", - "node_id": 24 + "node_id": 23 } ] }, @@ -78,7 +78,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Read)", "id": 3, "name": "Bar", - "node_id": 31 + "node_id": 29 } ] } 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 77a4b14759545..c9eac9e62ca3b 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] }, @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Read)", "id": 1, "name": "value", - "node_id": 19 + "node_id": 18 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", - "node_id": 31 + "node_id": 28 } ] } @@ -78,13 +78,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flags": "ReferenceFlags(Type)", "id": 2, "name": "makeBox", - "node_id": 27 + "node_id": 25 }, { "flags": "ReferenceFlags(Read)", "id": 4, "name": "makeBox", - "node_id": 36 + "node_id": 33 } ] }, 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 e3195e0d69378..99bcf0bc5bb4d 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/generic-typ "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 12 + "node_id": 11 } ] } 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 5a885ad027e22..8123299e4c56b 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "flags": "ReferenceFlags(Read)", "id": 3, "name": "props", - "node_id": 52 + "node_id": 51 } ] } @@ -70,7 +70,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "flags": "ReferenceFlags(Type)", "id": 2, "name": "FooProps", - "node_id": 44 + "node_id": 43 } ] }, 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 03a8a318eb245..4cc781f8ed0bd 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 11 + "node_id": 10 } ] } 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 51fdadd1f1056..9faff12d761f7 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 } ] }, 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 fccefb2f84a27..fbaedad67e96c 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 82296a47a42d0..74a7c5f97a9ac 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 16 + "node_id": 15 } ] }, 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 1a0f241e15598..9bffc47b1e597 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 ad27b91edd035..99a547be2e935 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 } ] }, 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 855ed1dcda91b..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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 52ec33c1c71bf..1b3ffd2f59489 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 538215cfca344..30ed44b30092b 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 49904a64f3b53..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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 cb59a03bbe147..d4496f3b7fb0a 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 72659755f4a1e..0e74a36ab94f0 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 @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flags": "ReferenceFlags(Read)", "id": 1, "name": "x", - "node_id": 14 + "node_id": 13 } ] }, @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 } ] } 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 84042bafffbac..64f18e9a7d0ad 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 14 + "node_id": 13 } ] } 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 6c7c379da9b3e..a0a823d01702c 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 14 + "node_id": 13 } ] } 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 02ec9300efdc5..3e21cf3a63341 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 "flags": "ReferenceFlags(Type)", "id": 2, "name": "U", - "node_id": 19 + "node_id": 16 } ] } @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 5, "name": "U", - "node_id": 33 + "node_id": 27 } ] } @@ -66,13 +66,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 9 + "node_id": 8 }, { "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", - "node_id": 23 + "node_id": 19 } ] } 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 e66568b957bb9..ee7f79f793bd3 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 @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "V", - "node_id": 15 + "node_id": 13 } ] } @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 9 + "node_id": 8 } ] } 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 96cd7fed52dcf..21267f84ffe04 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 @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 10 + "node_id": 9 } ] } 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 8097837ecdf81..2da8d352d5dc1 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 @@ -31,7 +31,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", - "node_id": 21 + "node_id": 19 } ] } @@ -52,7 +52,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 9 + "node_id": 8 } ] } 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 e1d4eb13f2c1e..ee59d43f2f361 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 @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", - "node_id": 21 + "node_id": 19 } ] } @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 9 + "node_id": 8 } ] } 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 02357c97d406e..11ee6799c0cbf 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 @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "I", - "node_id": 33 + "node_id": 31 } ] } @@ -60,7 +60,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 9 + "node_id": 8 } ] } 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 788fc026ad975..24043f12af8fc 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 @@ -34,13 +34,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "dual", - "node_id": 12 + "node_id": 11 }, { "flags": "ReferenceFlags(Read)", "id": 1, "name": "dual", - "node_id": 16 + "node_id": 15 } ] }, 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 0c407dee0510f..5be85379cf64e 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 17 + "node_id": 16 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 21 + "node_id": 19 } ] }, 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 212c81bcadbc3..2bb9d4135bc19 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 17 + "node_id": 16 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 21 + "node_id": 19 } ] }, 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 b5a61c7ab82c7..1e135a653772d 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 @@ -34,13 +34,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 18 + "node_id": 16 } ] }, 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 11e0768bec7a1..0641a117ccb20 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 @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 16 + "node_id": 15 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 20 + "node_id": 18 } ] }, 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 4f77ee17f68d3..b942d38cea31c 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 @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 16 + "node_id": 15 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 20 + "node_id": 18 } ] }, 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 219822c2bd3a8..32765cd4ed7a1 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 @@ -42,13 +42,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 17 + "node_id": 15 } ] }, 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 429754e116c30..6c6364e6d34a9 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "arg", - "node_id": 15 + "node_id": 14 } ] }, 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 25a47b808ade2..8f5482a8178c4 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 @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 15 + "node_id": 14 } ] } 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 04274ce133f80..8dc07cc6bef27 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 @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 22 + "node_id": 21 } ] } 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 b83b3a9fdc51c..506d33ce06c3c 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 @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 14 + "node_id": 13 } ] } 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 eded314b0385d..324e102cd1af6 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "Param", - "node_id": 14 + "node_id": 12 } ] }, 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 e5fd184f9645f..fd1192c7d4763 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 b695f2bce0d90..5d7854ac46e26 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 18 + "node_id": 17 } ] }, @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "K", - "node_id": 21 + "node_id": 19 } ] }, 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 82641ed0b6dc2..1c188bc030b6b 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 18 + "node_id": 17 } ] }, @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "k", - "node_id": 21 + "node_id": 19 } ] }, 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 bf3599377341c..01ac0a4fe5a5e 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 @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 2, "name": "Id", - "node_id": 28 + "node_id": 25 } ] } @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] } @@ -72,7 +72,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "X", - "node_id": 25 + "node_id": 23 } ] }, 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 64e97f59377ee..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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 8 + "node_id": 7 } ] }, 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 3ea2da1a0dce5..d68b0417d4560 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "Color", - "node_id": 26 + "node_id": 24 } ] }, @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "Quantity", - "node_id": 23 + "node_id": 22 } ] }, 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 182884ee36f8e..c7ca672aa14d5 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 @@ -21,25 +21,25 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 19 + "node_id": 17 }, { "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", - "node_id": 26 + "node_id": 22 }, { "flags": "ReferenceFlags(Type)", "id": 5, "name": "T", - "node_id": 33 + "node_id": 27 }, { "flags": "ReferenceFlags(Type)", "id": 7, "name": "T", - "node_id": 40 + "node_id": 32 } ] } @@ -67,7 +67,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 8, "name": "EnthusiasticGreeting", - "node_id": 45 + "node_id": 36 } ] }, 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 a70c19b96d87b..82d4a97aa69fb 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 @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "VerticalAlignment", - "node_id": 31 + "node_id": 30 } ] }, @@ -63,7 +63,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "HorizontalAlignment", - "node_id": 34 + "node_id": 32 } ] }, 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 43f9fdc32565e..aaaba664d4281 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 @@ -30,13 +30,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "k", - "node_id": 17 + "node_id": 15 }, { "flags": "ReferenceFlags(Type)", "id": 3, "name": "k", - "node_id": 24 + "node_id": 20 } ] } @@ -63,7 +63,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", - "node_id": 21 + "node_id": 18 } ] }, 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 f5134827c430f..4623a6d2d3fef 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 @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 2, "name": "k", - "node_id": 21 + "node_id": 18 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 18 + "node_id": 16 } ] }, 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 9751a695abfad..abcfd1b35840a 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 9 } ] }, 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 a8b619ffe6e6b..d58ac6f11f854 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 18 + "node_id": 17 } ] } @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 22 + "node_id": 20 } ] }, 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 6b1f66391abfb..5edda6092f875 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 @@ -34,13 +34,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 15 + "node_id": 14 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 19 + "node_id": 17 } ] }, 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 d00d07c9d403c..80a7265f7d3a0 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 @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "U", - "node_id": 18 + "node_id": 17 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 22 + "node_id": 20 } ] }, 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 b253db52e3549..cc79852608a6e 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 @@ -42,13 +42,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 15 + "node_id": 14 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 19 + "node_id": 17 } ] }, 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 c99c472fb143c..307129abf0a6e 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 15 + "node_id": 14 } ] }, 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 87786dd7b876f..2277d679323ac 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 @@ -56,13 +56,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 21 + "node_id": 20 }, { "flags": "ReferenceFlags(Type)", "id": 2, "name": "T", - "node_id": 25 + "node_id": 23 } ] }, 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 d7f3fe8b61ae3..5fb86a1a1915f 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 @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "U", - "node_id": 24 + "node_id": 22 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 20 + "node_id": 19 } ] }, 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 b008fdaad34a9..78011d5aca925 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 @@ -42,13 +42,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 17 + "node_id": 16 }, { "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 21 + "node_id": 19 } ] }, 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 6e5dd94ba115e..4fb8135afd1d8 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 @@ -48,7 +48,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 18 + "node_id": 17 } ] }, 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 ad90b22b7e12e..c5be2f7d31ae9 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 14f0f748cce09..0616b0a80f45d 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 14 + "node_id": 13 } ] }, 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 3e2bc88e7f655..0004e02460345 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 @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T1", - "node_id": 16 + "node_id": 15 } ] }, @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T2", - "node_id": 21 + "node_id": 19 } ] }, 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 c8ab1d5d28c78..4ab788a08e8ef 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 11 + "node_id": 10 } ] }, 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 ebd24ecfe58dd..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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 f50b89545430c..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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 13 + "node_id": 12 } ] } 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 af13c8dcb14df..ba0e51db325b0 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 @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "T", - "node_id": 17 + "node_id": 16 } ] } 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 b862d828c4a5b..2adb5af4d9624 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 b4bd25fb25d49..cbd2066f416c0 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 377b94eaf6b15..fa63840c75bc5 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 @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 1, "name": "StyledPaymentProps", - "node_id": 30 + "node_id": 29 } ] }, 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 66f8ff27e7084..683d245639622 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 8 + "node_id": 7 } ] } 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 08c1e6e12acad..79ae2e86baecc 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 92cb17d06468b..cae169342607e 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 10 + "node_id": 9 } ] }, 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 ff13cebf02128..66a786c8bc6df 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "x", - "node_id": 21 + "node_id": 18 } ] }, 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 fda719ea6dd4d..b4ee88546d233 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 12 + "node_id": 11 } ] }, @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Read)", "id": 1, "name": "y", - "node_id": 19 + "node_id": 18 } ] } @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 3, "name": "T", - "node_id": 33 + "node_id": 30 } ] } @@ -78,7 +78,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 2, "name": "foo", - "node_id": 29 + "node_id": 27 } ] }, 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 ec3f8da9aa199..366763ec86927 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "x", - "node_id": 9 + "node_id": 8 } ] }, 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 5240edd117861..3f6dc348ebec2 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "A", - "node_id": 9 + "node_id": 8 } ] }, 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 032392bc61325..516daeaef89f8 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 @@ -34,7 +34,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flags": "ReferenceFlags(Type)", "id": 0, "name": "T", - "node_id": 19 + "node_id": 18 } ] }, diff --git a/tasks/ast_tools/src/generators/ast_kind.rs b/tasks/ast_tools/src/generators/ast_kind.rs index 06ccf719347cd..85d36ac0560a6 100644 --- a/tasks/ast_tools/src/generators/ast_kind.rs +++ b/tasks/ast_tools/src/generators/ast_kind.rs @@ -38,7 +38,6 @@ const ENUMS_WHITE_LIST: &[&str] = &[ "SimpleAssignmentTarget", "AssignmentTargetPattern", "ModuleDeclaration", - "TSTypeName", ]; /// Generator for `AstKind`, `AstType`, and related code.