Skip to content

Commit

Permalink
Fix: Add #[ast_node] on new AST types
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Apr 22, 2024
1 parent d29d223 commit c367d50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ impl<'a> ArrayExpressionElement<'a> {

/// Array Expression Elision Element
/// Serialized as `null` in JSON AST. See `serialize.rs`.
#[ast_node]
#[derive(Debug, Clone, Hash)]
pub struct Elision {
pub span: Span,
Expand Down Expand Up @@ -1748,6 +1749,7 @@ pub struct CatchClause<'a> {
pub body: Box<'a, BlockStatement<'a>>,
}

#[ast_node]
#[derive(Debug, Hash)]
#[cfg_attr(feature = "serialize", derive(Serialize, Tsify))]
#[cfg_attr(feature = "serialize", serde(tag = "type"))]
Expand Down

0 comments on commit c367d50

Please sign in to comment.