Skip to content

Commit

Permalink
Unbox Lit
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 10, 2024
1 parent a5638fe commit 435dfb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/swc_ecma_ast/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub enum Expr {
#[tag("RegExpLiteral")]
#[tag("JSXText")]
#[tag("BigIntLiteral")]
Lit(Box<Lit>),
Lit(Lit),

#[tag("TemplateLiteral")]
Tpl(Box<Tpl>),
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_ecma_visit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ define!({
New(Box<NewExpr>),
Seq(Box<SeqExpr>),
Ident(Ident),
Lit(Box<Lit>),
Lit(Lit),
Tpl(Box<Tpl>),
TaggedTpl(Box<TaggedTpl>),
Arrow(Box<ArrowExpr>),
Expand Down Expand Up @@ -1023,7 +1023,7 @@ define!({
JSXNamespacedName(Box<JSXNamespacedName>),
}
pub enum JSXAttrValue {
Lit(Box<Lit>),
Lit(Lit),
JSXExprContainer(Box<JSXExprContainer>),
JSXElement(Box<JSXElement>),
JSXFragment(Box<JSXFragment>),
Expand Down

0 comments on commit 435dfb7

Please sign in to comment.