Skip to content

Commit

Permalink
refactor(ast): renumber JSXMemberExpressionObject discriminants (#5464
Browse files Browse the repository at this point in the history
)

Number discriminants starting at 0, not 1. This likely makes no difference, but starting numbering at 1 seems odd.
  • Loading branch information
overlookmotel committed Sep 4, 2024
1 parent a952c47 commit 2224cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_ast/src/ast/jsx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ pub struct JSXMemberExpression<'a> {
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[serde(untagged)]
pub enum JSXMemberExpressionObject<'a> {
IdentifierReference(Box<'a, IdentifierReference<'a>>) = 1,
MemberExpression(Box<'a, JSXMemberExpression<'a>>) = 2,
IdentifierReference(Box<'a, IdentifierReference<'a>>) = 0,
MemberExpression(Box<'a, JSXMemberExpression<'a>>) = 1,
}

/// JSX Expression Container
Expand Down

0 comments on commit 2224cc4

Please sign in to comment.