Skip to content

Commit

Permalink
chore: update output.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Aug 7, 2024
1 parent bc3b508 commit 83a2fb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 86 deletions.
45 changes: 2 additions & 43 deletions crates/oxc_ast/src/generated/derive_get_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

#![allow(clippy::match_same_arms)]

use crate::ast::*;
use oxc_span::{GetSpan, Span};

use crate::ast::*;

impl GetSpan for BooleanLiteral {
#[inline]
fn span(&self) -> Span {
Expand Down Expand Up @@ -56,7 +57,6 @@ impl<'a> GetSpan for Program<'a> {
}

impl<'a> GetSpan for Expression<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::BooleanLiteral(it) => it.span(),
Expand Down Expand Up @@ -148,7 +148,6 @@ impl<'a> GetSpan for ArrayExpression<'a> {
}

impl<'a> GetSpan for ArrayExpressionElement<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::SpreadElement(it) => it.span(),
Expand Down Expand Up @@ -214,7 +213,6 @@ impl<'a> GetSpan for ObjectExpression<'a> {
}

impl<'a> GetSpan for ObjectPropertyKind<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ObjectProperty(it) => it.span(),
Expand All @@ -231,7 +229,6 @@ impl<'a> GetSpan for ObjectProperty<'a> {
}

impl<'a> GetSpan for PropertyKey<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::StaticIdentifier(it) => it.span(),
Expand Down Expand Up @@ -304,7 +301,6 @@ impl<'a> GetSpan for TemplateElement<'a> {
}

impl<'a> GetSpan for MemberExpression<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ComputedMemberExpression(it) => it.span(),
Expand Down Expand Up @@ -364,7 +360,6 @@ impl<'a> GetSpan for SpreadElement<'a> {
}

impl<'a> GetSpan for Argument<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::SpreadElement(it) => it.span(),
Expand Down Expand Up @@ -464,7 +459,6 @@ impl<'a> GetSpan for AssignmentExpression<'a> {
}

impl<'a> GetSpan for AssignmentTarget<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::AssignmentTargetIdentifier(it) => it.span(),
Expand All @@ -483,7 +477,6 @@ impl<'a> GetSpan for AssignmentTarget<'a> {
}

impl<'a> GetSpan for SimpleAssignmentTarget<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::AssignmentTargetIdentifier(it) => it.span(),
Expand All @@ -500,7 +493,6 @@ impl<'a> GetSpan for SimpleAssignmentTarget<'a> {
}

impl<'a> GetSpan for AssignmentTargetPattern<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ArrayAssignmentTarget(it) => it.span(),
Expand Down Expand Up @@ -531,7 +523,6 @@ impl<'a> GetSpan for AssignmentTargetRest<'a> {
}

impl<'a> GetSpan for AssignmentTargetMaybeDefault<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::AssignmentTargetWithDefault(it) => it.span(),
Expand All @@ -558,7 +549,6 @@ impl<'a> GetSpan for AssignmentTargetWithDefault<'a> {
}

impl<'a> GetSpan for AssignmentTargetProperty<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::AssignmentTargetPropertyIdentifier(it) => it.span(),
Expand Down Expand Up @@ -610,7 +600,6 @@ impl<'a> GetSpan for ChainExpression<'a> {
}

impl<'a> GetSpan for ChainElement<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::CallExpression(it) => it.span(),
Expand All @@ -629,7 +618,6 @@ impl<'a> GetSpan for ParenthesizedExpression<'a> {
}

impl<'a> GetSpan for Statement<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::BlockStatement(it) => it.span(),
Expand Down Expand Up @@ -691,7 +679,6 @@ impl<'a> GetSpan for BlockStatement<'a> {
}

impl<'a> GetSpan for Declaration<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::VariableDeclaration(it) => it.span(),
Expand Down Expand Up @@ -771,7 +758,6 @@ impl<'a> GetSpan for ForStatement<'a> {
}

impl<'a> GetSpan for ForStatementInit<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::VariableDeclaration(it) => it.span(),
Expand Down Expand Up @@ -830,7 +816,6 @@ impl<'a> GetSpan for ForInStatement<'a> {
}

impl<'a> GetSpan for ForStatementLeft<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::VariableDeclaration(it) => it.span(),
Expand Down Expand Up @@ -949,7 +934,6 @@ impl<'a> GetSpan for BindingPattern<'a> {
}

impl<'a> GetSpan for BindingPatternKind<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::BindingIdentifier(it) => it.span(),
Expand Down Expand Up @@ -1052,7 +1036,6 @@ impl<'a> GetSpan for ClassBody<'a> {
}

impl<'a> GetSpan for ClassElement<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::StaticBlock(it) => it.span(),
Expand Down Expand Up @@ -1093,7 +1076,6 @@ impl<'a> GetSpan for StaticBlock<'a> {
}

impl<'a> GetSpan for ModuleDeclaration<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ImportDeclaration(it) => it.span(),
Expand Down Expand Up @@ -1128,7 +1110,6 @@ impl<'a> GetSpan for ImportDeclaration<'a> {
}

impl<'a> GetSpan for ImportDeclarationSpecifier<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ImportSpecifier(it) => it.span(),
Expand Down Expand Up @@ -1174,7 +1155,6 @@ impl<'a> GetSpan for ImportAttribute<'a> {
}

impl<'a> GetSpan for ImportAttributeKey<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand Down Expand Up @@ -1212,7 +1192,6 @@ impl<'a> GetSpan for ExportSpecifier<'a> {
}

impl<'a> GetSpan for ExportDefaultDeclarationKind<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::FunctionDeclaration(it) => it.span(),
Expand Down Expand Up @@ -1265,7 +1244,6 @@ impl<'a> GetSpan for ExportDefaultDeclarationKind<'a> {
}

impl<'a> GetSpan for ModuleExportName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::IdentifierName(it) => it.span(),
Expand Down Expand Up @@ -1297,7 +1275,6 @@ impl<'a> GetSpan for TSEnumMember<'a> {
}

impl<'a> GetSpan for TSEnumMemberName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::StaticIdentifier(it) => it.span(),
Expand Down Expand Up @@ -1365,7 +1342,6 @@ impl<'a> GetSpan for TSLiteralType<'a> {
}

impl<'a> GetSpan for TSLiteral<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::BooleanLiteral(it) => it.span(),
Expand All @@ -1381,7 +1357,6 @@ impl<'a> GetSpan for TSLiteral<'a> {
}

impl<'a> GetSpan for TSType<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::TSAnyKeyword(it) => it.span(),
Expand Down Expand Up @@ -1504,7 +1479,6 @@ impl<'a> GetSpan for TSRestType<'a> {
}

impl<'a> GetSpan for TSTupleElement<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::TSOptionalType(it) => it.span(),
Expand Down Expand Up @@ -1657,7 +1631,6 @@ impl<'a> GetSpan for TSTypeReference<'a> {
}

impl<'a> GetSpan for TSTypeName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::IdentifierReference(it) => it.span(),
Expand Down Expand Up @@ -1730,7 +1703,6 @@ impl<'a> GetSpan for TSPropertySignature<'a> {
}

impl<'a> GetSpan for TSSignature<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::TSIndexSignature(it) => it.span(),
Expand Down Expand Up @@ -1792,7 +1764,6 @@ impl<'a> GetSpan for TSTypePredicate<'a> {
}

impl<'a> GetSpan for TSTypePredicateName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand All @@ -1809,7 +1780,6 @@ impl<'a> GetSpan for TSModuleDeclaration<'a> {
}

impl<'a> GetSpan for TSModuleDeclarationName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand All @@ -1819,7 +1789,6 @@ impl<'a> GetSpan for TSModuleDeclarationName<'a> {
}

impl<'a> GetSpan for TSModuleDeclarationBody<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::TSModuleDeclaration(it) => it.span(),
Expand Down Expand Up @@ -1857,7 +1826,6 @@ impl<'a> GetSpan for TSTypeQuery<'a> {
}

impl<'a> GetSpan for TSTypeQueryExprName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::TSImportType(it) => it.span(),
Expand Down Expand Up @@ -1889,7 +1857,6 @@ impl<'a> GetSpan for TSImportAttribute<'a> {
}

impl<'a> GetSpan for TSImportAttributeName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand Down Expand Up @@ -1955,7 +1922,6 @@ impl<'a> GetSpan for TSImportEqualsDeclaration<'a> {
}

impl<'a> GetSpan for TSModuleReference<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::ExternalModuleReference(it) => it.span(),
Expand Down Expand Up @@ -2057,7 +2023,6 @@ impl<'a> GetSpan for JSXFragment<'a> {
}

impl<'a> GetSpan for JSXElementName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand All @@ -2082,7 +2047,6 @@ impl<'a> GetSpan for JSXMemberExpression<'a> {
}

impl<'a> GetSpan for JSXMemberExpressionObject<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand All @@ -2099,7 +2063,6 @@ impl<'a> GetSpan for JSXExpressionContainer<'a> {
}

impl<'a> GetSpan for JSXExpression<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::EmptyExpression(it) => it.span(),
Expand Down Expand Up @@ -2157,7 +2120,6 @@ impl GetSpan for JSXEmptyExpression {
}

impl<'a> GetSpan for JSXAttributeItem<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Attribute(it) => it.span(),
Expand All @@ -2181,7 +2143,6 @@ impl<'a> GetSpan for JSXSpreadAttribute<'a> {
}

impl<'a> GetSpan for JSXAttributeName<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Identifier(it) => it.span(),
Expand All @@ -2191,7 +2152,6 @@ impl<'a> GetSpan for JSXAttributeName<'a> {
}

impl<'a> GetSpan for JSXAttributeValue<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::StringLiteral(it) => it.span(),
Expand All @@ -2210,7 +2170,6 @@ impl<'a> GetSpan for JSXIdentifier<'a> {
}

impl<'a> GetSpan for JSXChild<'a> {
#[inline]
fn span(&self) -> Span {
match self {
Self::Text(it) => it.span(),
Expand Down
Loading

0 comments on commit 83a2fb7

Please sign in to comment.