Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
632 changes: 316 additions & 316 deletions crates/oxc_ast/src/generated/assert_layouts.rs

Large diffs are not rendered by default.

6,876 changes: 3,438 additions & 3,438 deletions crates/oxc_ast/src/generated/ast_builder.rs

Large diffs are not rendered by default.

750 changes: 375 additions & 375 deletions crates/oxc_ast/src/generated/ast_kind.rs

Large diffs are not rendered by default.

1,418 changes: 709 additions & 709 deletions crates/oxc_ast/src/generated/derive_clone_in.rs

Large diffs are not rendered by default.

490 changes: 245 additions & 245 deletions crates/oxc_ast/src/generated/derive_content_eq.rs

Large diffs are not rendered by default.

896 changes: 448 additions & 448 deletions crates/oxc_ast/src/generated/derive_estree.rs

Large diffs are not rendered by default.

150 changes: 75 additions & 75 deletions crates/oxc_ast/src/generated/derive_get_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,81 @@ impl GetAddress for ExportDefaultDeclarationKind<'_> {
}
}

impl GetAddress for JSXElementName<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Identifier(it) => GetAddress::address(it),
Self::IdentifierReference(it) => GetAddress::address(it),
Self::NamespacedName(it) => GetAddress::address(it),
Self::MemberExpression(it) => GetAddress::address(it),
Self::ThisExpression(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXMemberExpressionObject<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::IdentifierReference(it) => GetAddress::address(it),
Self::MemberExpression(it) => GetAddress::address(it),
Self::ThisExpression(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeItem<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Attribute(it) => GetAddress::address(it),
Self::SpreadAttribute(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeName<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Identifier(it) => GetAddress::address(it),
Self::NamespacedName(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeValue<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::StringLiteral(it) => GetAddress::address(it),
Self::ExpressionContainer(it) => GetAddress::address(it),
Self::Element(it) => GetAddress::address(it),
Self::Fragment(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXChild<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Text(it) => GetAddress::address(it),
Self::Element(it) => GetAddress::address(it),
Self::Fragment(it) => GetAddress::address(it),
Self::ExpressionContainer(it) => GetAddress::address(it),
Self::Spread(it) => GetAddress::address(it),
}
}
}

impl GetAddress for TSEnumMemberName<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
Expand Down Expand Up @@ -705,78 +780,3 @@ impl GetAddress for TSModuleReference<'_> {
}
}
}

impl GetAddress for JSXElementName<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Identifier(it) => GetAddress::address(it),
Self::IdentifierReference(it) => GetAddress::address(it),
Self::NamespacedName(it) => GetAddress::address(it),
Self::MemberExpression(it) => GetAddress::address(it),
Self::ThisExpression(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXMemberExpressionObject<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::IdentifierReference(it) => GetAddress::address(it),
Self::MemberExpression(it) => GetAddress::address(it),
Self::ThisExpression(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeItem<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Attribute(it) => GetAddress::address(it),
Self::SpreadAttribute(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeName<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Identifier(it) => GetAddress::address(it),
Self::NamespacedName(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXAttributeValue<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::StringLiteral(it) => GetAddress::address(it),
Self::ExpressionContainer(it) => GetAddress::address(it),
Self::Element(it) => GetAddress::address(it),
Self::Fragment(it) => GetAddress::address(it),
}
}
}

impl GetAddress for JSXChild<'_> {
// `#[inline]` because compiler should boil this down to a single assembly instruction
#[inline]
fn address(&self) -> Address {
match self {
Self::Text(it) => GetAddress::address(it),
Self::Element(it) => GetAddress::address(it),
Self::Fragment(it) => GetAddress::address(it),
Self::ExpressionContainer(it) => GetAddress::address(it),
Self::Spread(it) => GetAddress::address(it),
}
}
}
Loading
Loading