From 2224cc4e62e51e3bd4f09f724a37aa730e38244d Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:59:53 +0000 Subject: [PATCH] refactor(ast): renumber `JSXMemberExpressionObject` discriminants (#5464) Number discriminants starting at 0, not 1. This likely makes no difference, but starting numbering at 1 seems odd. --- crates/oxc_ast/src/ast/jsx.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_ast/src/ast/jsx.rs b/crates/oxc_ast/src/ast/jsx.rs index 9c2366d893266..974c446d6e38d 100644 --- a/crates/oxc_ast/src/ast/jsx.rs +++ b/crates/oxc_ast/src/ast/jsx.rs @@ -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