diff --git a/crates/oxc_ast/src/ast_impl/js.rs b/crates/oxc_ast/src/ast_impl/js.rs index 16ea8c4e93306..842b054f6d991 100644 --- a/crates/oxc_ast/src/ast_impl/js.rs +++ b/crates/oxc_ast/src/ast_impl/js.rs @@ -293,6 +293,13 @@ impl<'a> IdentifierName<'a> { } } +impl<'a> fmt::Display for IdentifierName<'a> { + #[inline] + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.name.fmt(f) + } +} + impl<'a> Hash for IdentifierReference<'a> { fn hash(&self, state: &mut H) { self.name.hash(state); @@ -319,6 +326,12 @@ impl<'a> IdentifierReference<'a> { } } +impl<'a> fmt::Display for IdentifierReference<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.name.fmt(f) + } +} + impl<'a> Hash for BindingIdentifier<'a> { fn hash(&self, state: &mut H) { self.name.hash(state); @@ -331,6 +344,13 @@ impl<'a> BindingIdentifier<'a> { } } +impl<'a> fmt::Display for BindingIdentifier<'a> { + #[inline] + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.name.fmt(f) + } +} + impl<'a> ArrayExpressionElement<'a> { pub fn is_elision(&self) -> bool { matches!(self, Self::Elision(_)) diff --git a/crates/oxc_ast/src/ast_impl/jsx.rs b/crates/oxc_ast/src/ast_impl/jsx.rs index 42624cb0a9006..835533739137c 100644 --- a/crates/oxc_ast/src/ast_impl/jsx.rs +++ b/crates/oxc_ast/src/ast_impl/jsx.rs @@ -2,11 +2,24 @@ use crate::ast::*; use oxc_span::{Atom, Span}; +use std::fmt; // 1.2 JSX Elements -impl<'a> std::fmt::Display for JSXNamespacedName<'a> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { +impl<'a> JSXIdentifier<'a> { + pub fn new(span: Span, name: Atom<'a>) -> Self { + Self { span, name } + } +} +impl<'a> fmt::Display for JSXIdentifier<'a> { + #[inline] + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + self.name.fmt(f) + } +} + +impl<'a> fmt::Display for JSXNamespacedName<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}:{}", self.namespace.name, self.property.name) } } @@ -41,6 +54,31 @@ impl<'a> JSXMemberExpression<'a> { } } +impl<'a> fmt::Display for JSXMemberExpression<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}.{}", self.object, self.property) + } +} + +impl<'a> fmt::Display for JSXMemberExpressionObject<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Self::Identifier(id) => id.fmt(f), + Self::MemberExpression(expr) => expr.fmt(f), + } + } +} + +impl<'a> fmt::Display for JSXElementName<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Self::Identifier(ident) => ident.fmt(f), + Self::NamespacedName(namespaced) => namespaced.fmt(f), + Self::MemberExpression(member_expr) => member_expr.fmt(f), + } + } +} + impl<'a> JSXExpression<'a> { /// Determines whether the given expr is a `undefined` literal pub fn is_undefined(&self) -> bool { @@ -57,9 +95,3 @@ impl<'a> JSXAttribute<'a> { self.is_identifier("key") } } - -impl<'a> JSXIdentifier<'a> { - pub fn new(span: Span, name: Atom<'a>) -> Self { - Self { span, name } - } -} diff --git a/crates/oxc_ast/src/ast_impl/ts.rs b/crates/oxc_ast/src/ast_impl/ts.rs index 1ec47a58be3a0..f7dcf2efba71f 100644 --- a/crates/oxc_ast/src/ast_impl/ts.rs +++ b/crates/oxc_ast/src/ast_impl/ts.rs @@ -3,7 +3,7 @@ //! [AST Spec](https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/ast-spec) //! [Archived TypeScript spec](https://github.com/microsoft/TypeScript/blob/3c99d50da5a579d9fa92d02664b1b66d4ff55944/doc/spec-ARCHIVED.md) -use std::{cell::Cell, hash::Hash}; +use std::{cell::Cell, fmt, hash::Hash}; use oxc_allocator::Vec; use oxc_span::{Atom, Span}; @@ -100,6 +100,21 @@ impl<'a> TSTypeName<'a> { } } +impl<'a> fmt::Display for TSTypeName<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + TSTypeName::IdentifierReference(ident) => ident.fmt(f), + TSTypeName::QualifiedName(qualified) => qualified.fmt(f), + } + } +} + +impl<'a> fmt::Display for TSQualifiedName<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{}.{}", self.left, self.right) + } +} + impl<'a> TSType<'a> { /// Remove nested parentheses from this type. pub fn without_parenthesized(&self) -> &Self { @@ -154,6 +169,15 @@ impl<'a> TSModuleDeclarationName<'a> { } } +impl<'a> fmt::Display for TSModuleDeclarationName<'a> { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + Self::Identifier(id) => id.fmt(f), + Self::StringLiteral(lit) => lit.fmt(f), + } + } +} + impl<'a> TSModuleDeclarationBody<'a> { pub fn is_strict(&self) -> bool { matches!(self, Self::TSModuleBlock(block) if block.is_strict()) diff --git a/crates/oxc_ast/src/ast_kind_impl.rs b/crates/oxc_ast/src/ast_kind_impl.rs index 53387a051259e..5d14464d8d0a5 100644 --- a/crates/oxc_ast/src/ast_kind_impl.rs +++ b/crates/oxc_ast/src/ast_kind_impl.rs @@ -178,6 +178,18 @@ impl<'a> AstKind<'a> { /// Note that this method does not exist in release builds. Do not include /// usage of this method within your code. pub fn debug_name(&self) -> std::borrow::Cow { + use std::borrow::Cow; + + const COMPUTED: Cow<'static, str> = Cow::Borrowed(""); + const UNKNOWN: Cow<'static, str> = Cow::Borrowed(""); + const ANONYMOUS: Cow<'static, str> = Cow::Borrowed(""); + const DESTRUCTURE: Cow<'static, str> = Cow::Borrowed(""); + + #[inline] + fn or_anonymous<'a>(id: Option<&BindingIdentifier<'a>>) -> Cow<'a, str> { + id.map_or_else(|| ANONYMOUS.as_ref(), |id| id.name.as_str()).into() + } + match self { Self::Program(_) => "Program".into(), Self::Directive(d) => d.directive.as_ref().into(), @@ -195,7 +207,7 @@ impl<'a> AstKind<'a> { Self::ForStatement(_) => "ForStatement".into(), Self::ForStatementInit(_) => "ForStatementInit".into(), Self::IfStatement(_) => "IfStatement".into(), - Self::LabeledStatement(_) => "LabeledStatement".into(), + Self::LabeledStatement(l) => format!("LabeledStatement({})", l.label.name).into(), Self::ReturnStatement(_) => "ReturnStatement".into(), Self::SwitchStatement(_) => "SwitchStatement".into(), Self::ThrowStatement(_) => "ThrowStatement".into(), @@ -208,7 +220,11 @@ impl<'a> AstKind<'a> { Self::FinallyClause(_) => "FinallyClause".into(), Self::VariableDeclaration(_) => "VariableDeclaration".into(), - Self::VariableDeclarator(_) => "VariableDeclarator".into(), + Self::VariableDeclarator(v) => format!( + "VariableDeclarator({})", + v.id.get_identifier().unwrap_or(Atom::from(DESTRUCTURE.as_ref())) + ) + .into(), Self::UsingDeclaration(_) => "UsingDeclaration".into(), @@ -237,13 +253,26 @@ impl<'a> AstKind<'a> { Self::ArrowFunctionExpression(_) => "ArrowFunctionExpression".into(), Self::AssignmentExpression(_) => "AssignmentExpression".into(), Self::AwaitExpression(_) => "AwaitExpression".into(), - Self::BinaryExpression(b) => format!("BinaryExpression{}", b.operator.as_str()).into(), - Self::CallExpression(_) => "CallExpression".into(), + Self::BinaryExpression(b) => { + format!("BinaryExpression({})", b.operator.as_str()).into() + } + Self::CallExpression(c) => { + format!("CallExpression({})", c.callee_name().unwrap_or(&COMPUTED)).into() + } Self::ChainExpression(_) => "ChainExpression".into(), Self::ConditionalExpression(_) => "ConditionalExpression".into(), Self::LogicalExpression(_) => "LogicalExpression".into(), Self::MemberExpression(_) => "MemberExpression".into(), - Self::NewExpression(_) => "NewExpression".into(), + Self::NewExpression(n) => { + let callee = match &n.callee { + Expression::Identifier(id) => Some(id.name.as_str()), + match_member_expression!(Expression) => { + n.callee.to_member_expression().static_property_name() + } + _ => None, + }; + format!("NewExpression({})", callee.unwrap_or(&COMPUTED)).into() + } Self::ObjectExpression(_) => "ObjectExpression".into(), Self::ParenthesizedExpression(_) => "ParenthesizedExpression".into(), Self::SequenceExpression(_) => "SequenceExpression".into(), @@ -255,12 +284,16 @@ impl<'a> AstKind<'a> { Self::ImportExpression(_) => "ImportExpression".into(), Self::PrivateInExpression(_) => "PrivateInExpression".into(), - Self::ObjectProperty(_) => "ObjectProperty".into(), - Self::PropertyKey(_) => "PropertyKey".into(), + Self::ObjectProperty(p) => { + format!("ObjectProperty({})", p.key.name().unwrap_or(COMPUTED)).into() + } + Self::PropertyKey(p) => format!("PropertyKey({})", p.name().unwrap_or(COMPUTED)).into(), Self::Argument(_) => "Argument".into(), Self::ArrayExpressionElement(_) => "ArrayExpressionElement".into(), Self::AssignmentTarget(_) => "AssignmentTarget".into(), - Self::SimpleAssignmentTarget(_) => "SimpleAssignmentTarget".into(), + Self::SimpleAssignmentTarget(a) => { + format!("SimpleAssignmentTarget({})", a.get_identifier().unwrap_or(&UNKNOWN)).into() + } Self::AssignmentTargetPattern(_) => "AssignmentTargetPattern".into(), Self::ArrayAssignmentTarget(_) => "ArrayAssignmentTarget".into(), Self::ObjectAssignmentTarget(_) => "ObjectAssignmentTarget".into(), @@ -270,21 +303,17 @@ impl<'a> AstKind<'a> { Self::ExpressionArrayElement(_) => "ExpressionArrayElement".into(), Self::BindingRestElement(_) => "BindingRestElement".into(), - Self::Function(x) => format!( - "Function({})", - x.id.as_ref().map_or_else(|| "", |id| id.name.as_str()) - ) - .into(), + Self::Function(x) => format!("Function({})", or_anonymous(x.id.as_ref())).into(), Self::FunctionBody(_) => "FunctionBody".into(), Self::FormalParameters(_) => "FormalParameters".into(), - Self::FormalParameter(_) => "FormalParameter".into(), - Self::CatchParameter(_) => "CatchParameter".into(), - - Self::Class(c) => format!( - "Class({})", - c.id.as_ref().map_or_else(|| "", |id| id.name.as_str()) + Self::FormalParameter(p) => format!( + "FormalParameter({})", + p.pattern.get_identifier().unwrap_or(Atom::from(DESTRUCTURE.as_ref())) ) .into(), + Self::CatchParameter(_) => "CatchParameter".into(), + + Self::Class(c) => format!("Class({})", or_anonymous(c.id.as_ref())).into(), Self::TSClassImplements(_) => "TSClassImplements".into(), Self::ClassBody(_) => "ClassBody".into(), Self::ClassHeritage(_) => "ClassHeritage".into(), @@ -300,8 +329,8 @@ impl<'a> AstKind<'a> { Self::ModuleDeclaration(_) => "ModuleDeclaration".into(), Self::ImportDeclaration(_) => "ImportDeclaration".into(), - Self::ImportSpecifier(_) => "ImportSpecifier".into(), - Self::ExportSpecifier(_) => "ExportSpecifier".into(), + Self::ImportSpecifier(i) => format!("ImportSpecifier({})", i.local.name).into(), + Self::ExportSpecifier(e) => format!("ExportSpecifier({})", e.local.name()).into(), Self::ImportDefaultSpecifier(_) => "ImportDefaultSpecifier".into(), Self::ImportNamespaceSpecifier(_) => "ImportNamespaceSpecifier".into(), Self::ExportDefaultDeclaration(_) => "ExportDefaultDeclaration".into(), @@ -309,14 +338,14 @@ impl<'a> AstKind<'a> { Self::ExportAllDeclaration(_) => "ExportAllDeclaration".into(), Self::JSXOpeningElement(_) => "JSXOpeningElement".into(), Self::JSXClosingElement(_) => "JSXClosingElement".into(), - Self::JSXElementName(_) => "JSXElementName".into(), + Self::JSXElementName(n) => format!("JSXElementName({n})").into(), Self::JSXElement(_) => "JSXElement".into(), Self::JSXFragment(_) => "JSXFragment".into(), Self::JSXAttributeItem(_) => "JSXAttributeItem".into(), Self::JSXSpreadAttribute(_) => "JSXSpreadAttribute".into(), Self::JSXText(_) => "JSXText".into(), Self::JSXExpressionContainer(_) => "JSXExpressionContainer".into(), - Self::JSXIdentifier(_) => "JSXIdentifier".into(), + Self::JSXIdentifier(id) => format!("JSXIdentifier({id})").into(), Self::JSXMemberExpression(_) => "JSXMemberExpression".into(), Self::JSXMemberExpressionObject(_) => "JSXMemberExpressionObject".into(), Self::JSXNamespacedName(_) => "JSXNamespacedName".into(), @@ -329,7 +358,7 @@ impl<'a> AstKind<'a> { Self::TSMethodSignature(_) => "TSMethodSignature".into(), Self::TSNullKeyword(_) => "TSNullKeyword".into(), Self::TSTypeLiteral(_) => "TSTypeLiteral".into(), - Self::TSTypeReference(_) => "TSTypeReference".into(), + Self::TSTypeReference(t) => format!("TSTypeReference({})", t.type_name).into(), Self::TSUnionType(_) => "TSUnionType".into(), Self::TSParenthesizedType(_) => "TSParenthesizedType".into(), Self::TSVoidKeyword(_) => "TSVoidKeyword".into(), @@ -359,18 +388,18 @@ impl<'a> AstKind<'a> { Self::TSEnumMember(_) => "TSEnumMember".into(), Self::TSImportEqualsDeclaration(_) => "TSImportEqualsDeclaration".into(), - Self::TSTypeName(_) => "TSTypeName".into(), + Self::TSTypeName(n) => format!("TSTypeName({n})").into(), Self::TSExternalModuleReference(_) => "TSExternalModuleReference".into(), - Self::TSQualifiedName(_) => "TSQualifiedName".into(), + Self::TSQualifiedName(n) => format!("TSQualifiedName({n})").into(), Self::TSInterfaceDeclaration(_) => "TSInterfaceDeclaration".into(), Self::TSInterfaceHeritage(_) => "TSInterfaceHeritage".into(), - Self::TSModuleDeclaration(_) => "TSModuleDeclaration".into(), + Self::TSModuleDeclaration(m) => format!("TSModuleDeclaration({})", m.id).into(), Self::TSTypeAliasDeclaration(_) => "TSTypeAliasDeclaration".into(), Self::TSTypeAnnotation(_) => "TSTypeAnnotation".into(), Self::TSTypeQuery(_) => "TSTypeQuery".into(), Self::TSTypeAssertion(_) => "TSTypeAssertion".into(), Self::TSThisParameter(_) => "TSThisParameter".into(), - Self::TSTypeParameter(_) => "TSTypeParameter".into(), + Self::TSTypeParameter(t) => format!("TSTypeParameter({})", t.name).into(), Self::TSTypeParameterDeclaration(_) => "TSTypeParameterDeclaration".into(), Self::TSTypeParameterInstantiation(_) => "TSTypeParameterInstantiation".into(), Self::TSImportType(_) => "TSImportType".into(), diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap index 14c91d7a071b1..05137d9154d82 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited-scope.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/inherited "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap index d199bb8e6c5b4..a52c025086ccb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "i", - "node": "VariableDeclarator", + "node": "VariableDeclarator(i)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/block/scope.ts "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "j", - "node": "VariableDeclarator", + "node": "VariableDeclarator(j)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap index 34ff2879debde..4591db113131d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/call-expression.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap index 4c543d9e6c088..2e7046928bc87 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression/type-parameters2.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/call-expression "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap index 777b6d3a8f86e..317e5717f8b96 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited-scope.snap @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/inherited "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap index 18192f91af651..c32ace1dddb69 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.snap @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -58,14 +58,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/catch/scope.ts "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "dontReference2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(dontReference2)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap index 7e71f4245b0e1..bb644bd247dd6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/abstract.snap @@ -17,14 +17,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap index d4c91e1abff5e..e9632f85a041f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/accessor-property.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap index 94b6488076ee2..44ffd18a77602 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/computed-member.snap @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer1", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer1)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "outer2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer2)", "references": [ { "flag": "ReferenceFlag(Read)", 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 6a11fff251bd0..0444b7478f749 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] 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 bfdb2d259790f..2b9b7bc6f6e41 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [ { "flag": "ReferenceFlag(Type)", 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 22c16c07f1fb1..d96ef67d09e25 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [ { "flag": "ReferenceFlag(Type)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap index 2e5852f794484..0ea3f0c286ae6 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/generic.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [] } ] 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 095093a5d1f4d..9fa453698c75c 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap index 77bfbb5511233..030387a79d054 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method-param-default.snap @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "printName", - "node": "FormalParameter", + "node": "FormalParameter(printName)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -39,7 +39,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "printerName", - "node": "FormalParameter", + "node": "FormalParameter(printerName)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap index e337130be6c6f..97f4d3f1c984b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/method.snap @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -37,35 +37,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] } ] @@ -92,14 +92,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 7, "name": "unresolved1", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved1)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved2)", "references": [] } ] 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 b2e1a361eacfa..27fd5b36207ca 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -44,35 +44,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter(c)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] } ] @@ -92,7 +92,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -127,7 +127,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap index 80f38628e7758..415ebb82ce8b9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declaration/properties.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 59e4e6ddeba29..ea7a59bfbfcd7 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 @@ -75,7 +75,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/declarati "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "v", - "node": "VariableDeclarator", + "node": "VariableDeclarator(v)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap index efc1c32c7cae5..e76593b722477 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/computed-member.snap @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer1", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer1)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "outer2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer2)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap index fc888dfdf400e..da232ae088447 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/extends.snap @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "B", - "node": "VariableDeclarator", + "node": "VariableDeclarator(B)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap index c776f2f71de23..ee5dfc49c2062 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/method.snap @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -37,35 +37,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] } ] @@ -85,21 +85,21 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 7, "name": "unresolved1", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved1)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved2)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap index ad8e57d00d079..aa4f53521ef95 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/new.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [ { "flag": "ReferenceFlag(Read)", 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 e390b075f4079..d4a8685e10b79 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -44,35 +44,35 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter(c)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] } ] @@ -92,7 +92,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -120,14 +120,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap index 4e565776aaa73..8d2e2fed98896 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/private-identifier.snap @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap index 08854d17137fa..a122815e47bfe 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/properties.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,14 +35,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap index 5838faa2bf945..ae0700dd5d284 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expression/self-reference-super.snap @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/class/expressio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "A", - "node": "VariableDeclarator", + "node": "VariableDeclarator(A)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap index cedc2454f5d23..a08c9aa1fd7f7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/accessor.snap @@ -31,7 +31,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/acce "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", - "node": "FormalParameter", + "node": "FormalParameter(value)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap index a0a4fb5ac5631..e8b8ac87411d9 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter-property.snap @@ -24,14 +24,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap index 913478f18f029..1efb50deddde7 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/parameter.snap @@ -24,28 +24,28 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/para "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap index 8ce38aedf6891..ab6cf3e82b05d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/typeof-this.snap @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/decorators/type "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "baz", - "node": "FormalParameter", + "node": "FormalParameter(baz)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap index 3acd1f8d60abd..ccd3c65fc2272 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array-assignment.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "obj", - "node": "VariableDeclarator", + "node": "VariableDeclarator(obj)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "b", - "node": "VariableDeclarator", + "node": "VariableDeclarator(b)", "references": [ { "flag": "ReferenceFlag(Write)", @@ -41,7 +41,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "flag": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "c", - "node": "VariableDeclarator", + "node": "VariableDeclarator(c)", "references": [ { "flag": "ReferenceFlag(Write)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap index e28e144f15562..7d4a97a9ed9d8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/array.snap @@ -13,49 +13,49 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/a "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "b", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "c", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "d", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "e", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "f", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 6, "name": "rest", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap index f8239b60eef77..7036448451ce5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object-assignment.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/o "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "obj", - "node": "VariableDeclarator", + "node": "VariableDeclarator(obj)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap index 049a4870497a3..016442f3937a0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/object.snap @@ -13,49 +13,49 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/destructuring/o "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "shorthand", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "value", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "world", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "b", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "c", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 6, "name": "d", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap index 6f3f6e195d1e2..7d8908aeabc8a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default-type.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default- "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap index cfa234fc13e41..b0957320007e4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/default2 "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap index 0d9e98e4ad634..b95a3d003343d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/equals1. "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap index 5590723c7434d..eea0b8d9d9646 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-dual.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named-du "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap index 17c585acb03a3..3ad06c1c470c5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named1.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap index 20a10261f16ba..db3605dc79f51 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named2.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap index 2f7c69ed3a2d2..ef37105ca2713 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/named3.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 0, "name": "v", - "node": "VariableDeclarator", + "node": "VariableDeclarator(v)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap index 18a9cd8438575..5b362216a7b72 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inline.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type-inl "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [ { "flag": "ReferenceFlag(Type)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap index a66aee926196d..8def6562bc0d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/export/type.ts "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export | TypeAlias)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [ { "flag": "ReferenceFlag(Type)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap index d44d707d485a1..9d38826a7499a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-body-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap index c00978064c535..6305e258448ed 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-const.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap index 4185927a7751b..28e503905275c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-let.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap index 08a91c97a4604..fe9320ffe91a0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested-body-shadow.snap @@ -23,14 +23,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -58,7 +58,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap index e086ee7a07a9a..19d48c3efe310 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-nested.snap @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -37,7 +37,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap index ea72f0cf3af49..81b71e353bc53 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-param-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,14 +43,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap index 5c65e1e7b66b2..64144dc674704 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/readable-ref-partial.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap index 8ac3a964b1d59..e1b7773db2044 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/default-params/writable-ref.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap index d0230e424fc7d..b76598557e4a8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/inherited-scope.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", - "node": "VariableDeclarator", + "node": "VariableDeclarator(parentScoped)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap index aff8f6c5de13d..e10aaa7c8a7f8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/no-body.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap index fe1f26262ba40..c7f0bd86dea75 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/params.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,42 +35,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "g", - "node": "FormalParameter", + "node": "FormalParameter(g)", "references": [] } ] @@ -84,7 +84,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -98,7 +98,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 8, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap index 90cc871041416..b0e85e3e0ce34 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/scope.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", - "node": "VariableDeclarator", + "node": "VariableDeclarator(i)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", - "node": "VariableDeclarator", + "node": "VariableDeclarator(j)", "references": [] } ] @@ -43,14 +43,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "arrow", - "node": "VariableDeclarator", + "node": "VariableDeclarator(arrow)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 48d1aab3fea31..d57ed25f45bf9 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 6d00a545c8809..2a471d81e5d53 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 c6effd8d5d759..b281fa060e032 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 0e8a06646f6f1..1c922cd9ca749 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap index 060d3336eaf4c..ee6047b26f15c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-parameters/type-parameter-declaration.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] }, { diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap index ae19873f38e5f..760c2e908a827 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate-asserts1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 9b41bfb55f3e7..da8e49256cc11 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap index fb85d7d1434e8..6cc1792a728f2 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow/type-predicate1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 3a69816c02c82..8d0a425debf8e 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/arrow "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap index f16c2a6ba10cf..e067b704580ab 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-body-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap index f69bbcd3fcd2f..9a3666fca5b81 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-const.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap index 750d0897b5447..300a6fb621f4a 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-let.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap index c075ba8f56b5d..63a63bb0b3b4f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested-body-shadow.snap @@ -23,14 +23,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap index 8660d85dfd00d..43dd752e9cd8c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-nested.snap @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -37,7 +37,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap index 4abaf4b5c20f4..68f10093e91bc 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-param-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] }, { diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap index 4db72131cc49c..d684daada3f80 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/readable-ref-partial.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap index faa78f647ac2e..7b930597d0061 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/default-params/writable-ref.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap index d33b42d12e83d..979df7d875a90 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/inherited-scope.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", - "node": "VariableDeclarator", + "node": "VariableDeclarator(parentScoped)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap index 67684e653a999..1ebb253a7f2af 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/name-shadowed-in-body.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", - "node": "VariableDeclarator", + "node": "VariableDeclarator(usage)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap index a51875aa13d2f..44129d302db72 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/overload.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -37,7 +37,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap index f15b6d6487f4a..5bcc7c4839a4d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/params.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,42 +35,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "g", - "node": "FormalParameter", + "node": "FormalParameter(g)", "references": [] } ] @@ -84,7 +84,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -105,7 +105,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap index ef12dbdbf467a..287952c13d3c1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/scope.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", - "node": "VariableDeclarator", + "node": "VariableDeclarator(i)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", - "node": "VariableDeclarator", + "node": "VariableDeclarator(j)", "references": [] } ] @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 838fd198f769c..d748db71c2155 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] 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 fa41bfa52e7ca..3f870babe7d08 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] } ] 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 802182d17bfe5..4166bade0cb3f 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 c694b09b90a37..9b46b3f16f5a7 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap index 51208bd098ec0..e2c3325037f71 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-parameters/type-parameter-declaration.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap index 97836c82ee73e..5a477758493ba 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate-asserts1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] 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 9b8338e607167..fff2617455ba5 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap index 57f6716e77e06..eaabbb3ebd289 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-declaration/type-predicate1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", 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 f15da220370ce..6d80509dcb465 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap index 2a4e31a81bcd9..abb4ddd671af4 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/anonymous.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap index 437821b0d7a51..7e01b5615080d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-body-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap index 0a3e409458257..e5696150d2db1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-const.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap index 12958d12755de..6b863e1f1a35c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-let.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap index 07ab78d99405a..f54bd40be90d8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested-body-shadow.snap @@ -23,14 +23,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 3, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] } ] @@ -44,7 +44,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -58,7 +58,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap index 1a98d3f57d449..d1e96c72d96f0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-nested.snap @@ -23,7 +23,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -37,7 +37,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap index 231ed7649d8ba..e86490a212863 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-param-shadow.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,14 +43,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap index 8d1a6d3c66df9..a8a45d3afaa39 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/readable-ref-partial.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap index 055d2c1e104ac..5d6aec448878f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/default-params/writable-ref.snap @@ -15,14 +15,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter(b)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap index 05e10a76dc6c7..528b80b4c7ec0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/inherited-scope.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "parentScoped", - "node": "VariableDeclarator", + "node": "VariableDeclarator(parentScoped)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap index 377cb8c6a64f6..71778e64c524b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/params.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,42 +35,42 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "b", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 4, "name": "c", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "d", - "node": "FormalParameter", + "node": "FormalParameter(d)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 6, "name": "e", - "node": "FormalParameter", + "node": "FormalParameter(e)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 7, "name": "f", - "node": "FormalParameter", + "node": "FormalParameter(f)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 8, "name": "g", - "node": "FormalParameter", + "node": "FormalParameter(g)", "references": [] } ] @@ -84,7 +84,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "outer", - "node": "VariableDeclarator", + "node": "VariableDeclarator(outer)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -98,14 +98,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 9, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap index 26e205be47a5b..9d33e314baab0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/scope.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "i", - "node": "VariableDeclarator", + "node": "VariableDeclarator(i)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "j", - "node": "VariableDeclarator", + "node": "VariableDeclarator(j)", "references": [] } ] @@ -43,14 +43,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 3, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 f6b5d4edd758e..8f4eaeb86769d 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable)", "id": 2, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 0b58f7d47d518..13f7cbbfa5a01 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 2832df7155377..7d736f42fb56f 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 0deb3ce66995e..5c333b8fec6a3 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap index 5b4022f74c91b..690f1d64366bb 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-parameters/type-parameter-declaration.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] }, { diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap index cb34d603c9c17..7e0d0e35e972d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate-asserts1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 fd002d02d8c8b..1da9ef40b3ea1 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap index 38f656387cc15..3a5d20d0daf12 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/function-expression/type-predicate1.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] 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 6c6b5c451def2..7ab5c55d16ede 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -57,7 +57,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/functions/funct "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap index a89b5448d7937..2a3e292a30358 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-const.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap index 59b33a31cb788..0999057c67c4e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-let.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap index 5f2798be0abfb..afe358e19ba68 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/module/variable-decl-var.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap index 4a409242f3d78..033633a5fbb7e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-const.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap index 462d8bcd19c5d..64191a83fc249 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-let.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap index 076d6e40cd59e..a6f06bb6b9bba 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resolution/script/variable-decl-var.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/global-resoluti "flag": "SymbolFlags(FunctionScopedVariable)", "id": 0, "name": "top", - "node": "VariableDeclarator", + "node": "VariableDeclarator(top)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap index 99a16a44474a0..42cf0d5dcdaf8 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implicit1.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/implicit/implic "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] 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 ee9344032411b..9abccc06a536e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/equals2. "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", 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 fa7a886951552..d90302a2094a2 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named-al "flag": "SymbolFlags(Import)", "id": 0, "name": "t", - "node": "ImportSpecifier", + "node": "ImportSpecifier(t)", "references": [ { "flag": "ReferenceFlag(Read)", 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 1c2e7a94b9258..4f1f7c975ad6f 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/named.ts "flag": "SymbolFlags(Import)", "id": 0, "name": "v", - "node": "ImportSpecifier", + "node": "ImportSpecifier(v)", "references": [ { "flag": "ReferenceFlag(Read)", 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 dc20ba6efa92e..8a19de3f92bc5 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-def "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 8558f7674d32a..03cb3be692182 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "flag": "SymbolFlags(TypeImport)", "id": 0, "name": "foo", - "node": "ImportSpecifier", + "node": "ImportSpecifier(foo)", "references": [ { "flag": "ReferenceFlag(Type | TSTypeQuery)", 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 4ce404e7870e9..4d441102611d6 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "flag": "SymbolFlags(TypeImport)", "id": 0, "name": "T", - "node": "ImportSpecifier", + "node": "ImportSpecifier(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-inl "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 400b586b44a93..15fd8f0bc982f 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "flag": "SymbolFlags(TypeImport)", "id": 0, "name": "foo", - "node": "ImportSpecifier", + "node": "ImportSpecifier(foo)", "references": [ { "flag": "ReferenceFlag(Type | TSTypeQuery)", 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 731597f6d2de6..0565235f4fcfb 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "flag": "SymbolFlags(TypeImport)", "id": 0, "name": "T", - "node": "ImportSpecifier", + "node": "ImportSpecifier(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/import/type-nam "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] 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 330e62dd51b6b..d53cbca9e831d 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -37,7 +37,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(TypeParameter)", "id": 3, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 07d2bb8a3ce8a..a60e6b8cbcdd0 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", - "node": "FormalParameter", + "node": "FormalParameter(value)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(TypeParameter)", "id": 4, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -99,7 +99,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/instantiation-e "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 5, "name": "makeStringBox", - "node": "VariableDeclarator", + "node": "VariableDeclarator(makeStringBox)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap index 0e66e6c554c85..c0416cd3ef766 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-spread.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute-s "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap index 97c0f107258d2..f8086d79c6180 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -27,7 +27,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/attribute.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "attr", - "node": "VariableDeclarator", + "node": "VariableDeclarator(attr)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap index 870160ef06374..e4bbdb981f36b 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/children.ts "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "child", - "node": "VariableDeclarator", + "node": "VariableDeclarator(child)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap index e13e5caba04da..cbe848a9b1044 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced1.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "X", - "node": "VariableDeclarator", + "node": "VariableDeclarator(X)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap index d0218cbc9a06b..b296555de0ce0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-namespaced2.snap @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/component-n "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap index 798fb12df892c..a6709a90d55d1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/default-jsxFragmentName.snap @@ -20,7 +20,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/def "flag": "SymbolFlags(Import)", "id": 1, "name": "Fragment", - "node": "ImportSpecifier", + "node": "ImportSpecifier(Fragment)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap index fe538535f1ad1..38b533d236c9d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxFragmentName.snap @@ -20,7 +20,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx "flag": "SymbolFlags(Import)", "id": 1, "name": "Fragment", - "node": "ImportSpecifier", + "node": "ImportSpecifier(Fragment)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap index 671eb8c3fb61a..d094ff5ced540 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma-jsxFragmentName.snap @@ -20,14 +20,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx "flag": "SymbolFlags(Import)", "id": 1, "name": "h", - "node": "ImportSpecifier", + "node": "ImportSpecifier(h)", "references": [] }, { "flag": "SymbolFlags(Import)", "id": 2, "name": "Fragment", - "node": "ImportSpecifier", + "node": "ImportSpecifier(Fragment)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap index 70b6793a5d87d..d75c2e4b2a701 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsxPragma.snap @@ -20,7 +20,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/factory/jsx "flag": "SymbolFlags(Import)", "id": 1, "name": "h", - "node": "ImportSpecifier", + "node": "ImportSpecifier(h)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap index 21d3ba7ff610a..591c6cbb2c879 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-children.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/fragment-ch "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "child", - "node": "VariableDeclarator", + "node": "VariableDeclarator(child)", "references": [ { "flag": "ReferenceFlag(Read)", 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 f73b1b1237919..49a09b4b3f440 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "flag": "SymbolFlags(FunctionScopedVariable)", "id": 5, "name": "props", - "node": "FormalParameter", + "node": "FormalParameter(props)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -50,14 +50,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/namespaced- "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "y", - "node": "VariableDeclarator", + "node": "VariableDeclarator(y)", "references": [] }, { diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap index 0006b2a6effc4..fbfc986797f83 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/text.tsx "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap index a7b646806a076..7426ab8bd6169 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxidentifier.snap @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/jsx/this-jsxide "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "React", - "node": "VariableDeclarator", + "node": "VariableDeclarator(React)", "references": [] }, { diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap index 7c1b5f14b3f46..9213050eccec5 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expression/member-expression.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/member-expressi "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap index 36855937f0883..329c850852b8d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/new-expression.snap @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "a", - "node": "VariableDeclarator", + "node": "VariableDeclarator(a)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap index 8122b26dc60da..4627b796aff49 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/type-parameters2.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/new-expression/ "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "T", - "node": "VariableDeclarator", + "node": "VariableDeclarator(T)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap index 71caf242f2e81..39932e679199c 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.snap @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-enum/scope.t "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap index 57ec20667e467..64adfd7176bf3 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/class-namespace.snap @@ -16,13 +16,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", - "node": "VariableDeclarator", + "node": "VariableDeclarator(usage)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap index 0981092e19561..dee1bb3c6645d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/function-namespace.snap @@ -16,13 +16,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -50,7 +50,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", - "node": "VariableDeclarator", + "node": "VariableDeclarator(usage)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap index bade2f613a819..23b9e6722f79d 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/declaration-merging/namespace-variable.snap @@ -9,7 +9,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [] } ], @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | NameSpaceModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/decla "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "usage", - "node": "VariableDeclarator", + "node": "VariableDeclarator(usage)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap index 5e80d8a9b1389..21b1c69da5f44 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/external-ref.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/exter "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/exter "flag": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap index ffed0a0688903..7867f33f94f09 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/global-augmentation.snap @@ -9,7 +9,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/globa "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(global)", "symbols": [] } ], @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/globa "flag": "SymbolFlags(NameSpaceModule | Ambient)", "id": 0, "name": "global", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(global)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap index d3523d08cbdf9..baf6fd3b2afe1 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/import.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/impor "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(foo)", "symbols": [ { "flag": "SymbolFlags(Import)", "id": 1, "name": "bar", - "node": "ImportSpecifier", + "node": "ImportSpecifier(bar)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/impor "flag": "SymbolFlags(NameSpaceModule | Ambient)", "id": 0, "name": "foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(foo)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap index af3f64aaef6c0..4c22a13c839dc 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name-shadowed-in-body.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "Foo", - "node": "VariableDeclarator", + "node": "VariableDeclarator(Foo)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- "flag": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -43,7 +43,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/name- "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "usage", - "node": "VariableDeclarator", + "node": "VariableDeclarator(usage)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap index a01f28198f66b..d61a7c6b95209 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/namespace.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names "flag": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -49,7 +49,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/names "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap index 0db6d0b1697e2..4fed7ebaedc89 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -29,14 +29,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/scope "flag": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [] }, { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "unresolved", - "node": "VariableDeclarator", + "node": "VariableDeclarator(unresolved)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap index 485836396d8d3..af4ba15661cca 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self-ref.snap @@ -9,13 +9,13 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self- "children": [], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 1, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "symbols": [ { "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | Export)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/ts-module/self- "flag": "SymbolFlags(NameSpaceModule | ValueModule)", "id": 0, "name": "Foo", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Foo)", "references": [ { "flag": "ReferenceFlag(Read)", 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 81cc536252a6c..05b4f7e837936 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] } ] 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 39a7f3b481feb..d960e7bb9b517 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] } ] 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 26dd0070088cb..f0db8815377a7 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter()", "references": [] } ] 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 adde9e56e6ca4..3cb37f2bad719 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "a", - "node": "FormalParameter", + "node": "FormalParameter(a)", "references": [] } ] 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 18c0a0ac319c3..d2170bc9ea0ae 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] } ] 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 a1f6fc4487138..487c498c337ac 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] 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 47b958849c145..508613a18981b 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(BlockScopedVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] 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 6b84792b8336e..8745383117de9 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator()", "references": [] } ] 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 6bb70347e1470..67c90d1c05833 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 @@ -35,7 +35,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-annotation "flag": "SymbolFlags(FunctionScopedVariable)", "id": 1, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [] } ] 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 c9327a890fa3c..9fc19e45a6118 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", 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 3fc5d4e3c72f8..d1902e3aa05b7 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap index 37ea55f048a88..0fef91e3e5b87 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/angle-bracket-assignment.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read | Write)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap index e7fd5b24cda66..5b30cd678a574 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/as-assignment.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read | Write)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap index dae10cb0f7e5b..97af9665960c0 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/assignment/non-null-assignment.snap @@ -13,7 +13,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read | Write)", 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 ee6a4e74ba8ea..e79fd37702ac8 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-assertion/ "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", 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 4f5d8dade4415..130ac3ccfe117 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 @@ -19,7 +19,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 3, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -40,7 +40,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -61,7 +61,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 5337622f49dc9..ab08902b11ab9 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "V", - "node": "TSTypeParameter", + "node": "TSTypeParameter(V)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 5829566ef1809..790137ba4293f 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 1e0eeaafbd7e7..31fb0d4c4c0a3 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", - "node": "TSTypeParameter", + "node": "TSTypeParameter(I)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 af06f92ca829c..5133fc217f5cf 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", - "node": "TSTypeParameter", + "node": "TSTypeParameter(I)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 7cb74b13e9304..2c8c053af74b5 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 @@ -17,7 +17,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "I", - "node": "TSTypeParameter", + "node": "TSTypeParameter(I)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -38,7 +38,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 1282015e98e84..041b9b187e35f 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable | TypeAlias)", "id": 0, "name": "dual", - "node": "VariableDeclarator", + "node": "VariableDeclarator(dual)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -55,7 +55,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 2, "name": "reference2", - "node": "VariableDeclarator", + "node": "VariableDeclarator(reference2)", "references": [] } ] 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 7e6ec35aaddff..bd78a28f7ad25 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 b2b6c73a38e65..32dd8e611cb75 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 7635e0ec26ba5..7ff28c52ce995 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 a454073002ee8..5fb185cc7b3f7 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 17c47c483dc87..fc7ea9a4ac685 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 @@ -21,7 +21,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "arg", - "node": "VariableDeclarator", + "node": "VariableDeclarator(arg)", "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", 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 7b5f306ff6d15..85b0cff2b4240 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [ { "flag": "ReferenceFlag(Type)", 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 3d920fcd854d1..4fd6b24e03468 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [ { "flag": "ReferenceFlag(Type)", 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 f070489c9d855..f72014bd7425b 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "A", - "node": "TSTypeParameter", + "node": "TSTypeParameter(A)", "references": [ { "flag": "ReferenceFlag(Type)", 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 c76086755dd67..75441cebc43fe 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 @@ -42,7 +42,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 1, "name": "k", - "node": "VariableDeclarator", + "node": "VariableDeclarator(k)", "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", 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 5330971251239..fc6621ce35992 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 3, "name": "Id", - "node": "TSTypeParameter", + "node": "TSTypeParameter(Id)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -45,7 +45,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap index e0aef7f3234c1..05be7694d5e23 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/interface-heritage2.snap @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio ], "flag": "ScopeFlags(StrictMode | TsModuleBlock)", "id": 2, - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Member)", "symbols": [ { "flag": "SymbolFlags(Export | TypeAlias)", @@ -58,7 +58,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(NameSpaceModule)", "id": 1, "name": "Member", - "node": "TSModuleDeclaration", + "node": "TSModuleDeclaration(Member)", "references": [] }, { 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 ba375677a2d4c..bed9c91c3dc96 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 f101ed9366148..e791a2d3cd5c5 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 @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "value", - "node": "FormalParameter", + "node": "FormalParameter(value)", "references": [] } ] 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 844c7e83338d5..62b77e2a19913 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "k", - "node": "TSTypeParameter", + "node": "TSTypeParameter(k)", "references": [ { "flag": "ReferenceFlag(Type)", 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 8bd5b1bcacfa5..7ecdb9162ad57 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "k", - "node": "TSTypeParameter", + "node": "TSTypeParameter(k)", "references": [ { "flag": "ReferenceFlag(Type)", 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 146d20714eba0..6389e6e981b57 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 @@ -22,7 +22,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 e6064559de85e..56e8a9023affc 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 87b0910f52b9a..57967a106b8ef 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 @@ -36,7 +36,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", 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 005f6b6082487..6db1c15c9bf37 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 @@ -24,7 +24,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [ { "flag": "ReferenceFlag(Type)", 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 fd8856f7ad30c..425828fff8d6b 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read)", 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 2b687157c5c56..cf55edab14261 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 2fc898b82257f..8058e71f218f6 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] @@ -30,7 +30,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 3, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 fab02d13d1d08..c42b05d04aded 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] 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 c063811c7f904..b00824dc122ef 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap index 4bddbda5c228e..9dc8006b61906 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/interface/type-parameter-declaration.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] 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 9c6cd6f1df863..7caca7fe4851b 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 @@ -22,14 +22,14 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] }, { "flag": "SymbolFlags(FunctionScopedVariable)", "id": 3, "name": "arg", - "node": "FormalParameter", + "node": "FormalParameter(arg)", "references": [] } ] @@ -71,7 +71,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 4, "name": "StyledPayment", - "node": "VariableDeclarator", + "node": "VariableDeclarator(StyledPayment)", "references": [] } ] 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 92dddb8495b13..0699d87e10e9d 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 773d94c828a60..523b801d3dcda 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] 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 06c2d62512880..ee3ff7cea1cf8 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 2, "name": "U", - "node": "TSTypeParameter", + "node": "TSTypeParameter(U)", "references": [] } ] diff --git a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap index 41093014c1218..e1aa6bc10989e 100644 --- a/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap +++ b/crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaration/type-parameters/type-decl/type-parameter-declaration.snap @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [] } ] 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 a53a6103c15e9..7fda864c58cd2 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", 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 cf1cc71c916dc..057d08bb455a9 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 @@ -15,7 +15,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 1, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", @@ -29,7 +29,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(FunctionScopedVariable)", "id": 2, "name": "y", - "node": "FormalParameter", + "node": "FormalParameter(y)", "references": [ { "flag": "ReferenceFlag(Read)", @@ -51,7 +51,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(TypeParameter)", "id": 4, "name": "T", - "node": "TSTypeParameter", + "node": "TSTypeParameter(T)", "references": [ { "flag": "ReferenceFlag(Type)", 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 77c8393747425..26f742825a91b 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 @@ -28,7 +28,7 @@ input_file: crates/oxc_semantic/tests/fixtures/typescript-eslint/type-declaratio "flag": "SymbolFlags(BlockScopedVariable | ConstVariable)", "id": 0, "name": "x", - "node": "VariableDeclarator", + "node": "VariableDeclarator(x)", "references": [ { "flag": "ReferenceFlag(Read | TSTypeQuery)", diff --git a/crates/oxc_semantic/tests/integration/snapshots/break_from_a_label_in_global_scope.snap b/crates/oxc_semantic/tests/integration/snapshots/break_from_a_label_in_global_scope.snap index a6003d4426482..91d109bad8692 100644 --- a/crates/oxc_semantic/tests/integration/snapshots/break_from_a_label_in_global_scope.snap +++ b/crates/oxc_semantic/tests/integration/snapshots/break_from_a_label_in_global_scope.snap @@ -22,7 +22,7 @@ bb3: { digraph { 0 [ label = "" ] - 1 [ label = "LabeledStatement\nbreak " ] + 1 [ label = "LabeledStatement(A)\nbreak " ] 2 [ label = "unreachable" ] 3 [ label = "" ] 1 -> 0 [ label = "Error(Implicit)" ] diff --git a/crates/oxc_semantic/tests/integration/snapshots/cond_expr_in_arrow_fn.snap b/crates/oxc_semantic/tests/integration/snapshots/cond_expr_in_arrow_fn.snap index ed22c852fbcb3..5e7a79e9d20f1 100644 --- a/crates/oxc_semantic/tests/integration/snapshots/cond_expr_in_arrow_fn.snap +++ b/crates/oxc_semantic/tests/integration/snapshots/cond_expr_in_arrow_fn.snap @@ -40,7 +40,7 @@ digraph { 1 [ label = "VariableDeclaration" ] 2 [ label = "" ] 3 [ label = "ExpressionStatement" ] - 4 [ label = "Condition(CallExpression)" ] + 4 [ label = "Condition(CallExpression(a))" ] 5 [ label = "" ] 6 [ label = "" ] 7 [ label = "" ] diff --git a/crates/oxc_semantic/tests/integration/snapshots/conditional_expression.snap b/crates/oxc_semantic/tests/integration/snapshots/conditional_expression.snap index dcd0e9518859b..444513aacfa91 100644 --- a/crates/oxc_semantic/tests/integration/snapshots/conditional_expression.snap +++ b/crates/oxc_semantic/tests/integration/snapshots/conditional_expression.snap @@ -30,7 +30,7 @@ bb5: { digraph { 0 [ label = "" ] 1 [ label = "VariableDeclaration" ] - 2 [ label = "Condition(CallExpression)" ] + 2 [ label = "Condition(CallExpression(a))" ] 3 [ label = "" ] 4 [ label = "" ] 5 [ label = "VariableDeclaration" ] diff --git a/crates/oxc_semantic/tests/integration/snapshots/labeled_block_break.snap b/crates/oxc_semantic/tests/integration/snapshots/labeled_block_break.snap index 1253f3eaf0b03..44e98e0d65b84 100644 --- a/crates/oxc_semantic/tests/integration/snapshots/labeled_block_break.snap +++ b/crates/oxc_semantic/tests/integration/snapshots/labeled_block_break.snap @@ -56,7 +56,7 @@ digraph { 1 [ label = "TryStatement" ] 2 [ label = "" ] 3 [ label = "BlockStatement" ] - 4 [ label = "BlockStatement\nLabeledStatement\nBlockStatement\nIfStatement" ] + 4 [ label = "BlockStatement\nLabeledStatement(LABEL)\nBlockStatement\nIfStatement" ] 5 [ label = "Condition(IdentifierReference(condition))" ] 6 [ label = "BlockStatement\nbreak