Skip to content

Commit

Permalink
feat(ast): derive Clone and Copy for TemplateElement and TemplateElem…
Browse files Browse the repository at this point in the history
…entValue
  • Loading branch information
Dunqing committed Jan 22, 2025
1 parent a2a6454 commit f0ed208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/oxc_ast/src/ast/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ pub struct TaggedTemplateExpression<'a> {
///
/// Represents a quasi element in a template literal.
#[ast(visit)]
#[derive(Debug)]
#[derive(Debug, Clone)]
#[generate_derive(CloneIn, GetSpan, GetSpanMut, ContentEq, ESTree)]
pub struct TemplateElement<'a> {
pub span: Span,
Expand All @@ -442,7 +442,7 @@ pub struct TemplateElement<'a> {

/// See [template-strings-cooked-vs-raw](https://exploringjs.com/js/book/ch_template-literals.html#template-strings-cooked-vs-raw)
#[ast]
#[derive(Debug)]
#[derive(Debug, Clone)]
#[generate_derive(CloneIn, ContentEq, ESTree)]
#[estree(no_type)]
pub struct TemplateElementValue<'a> {
Expand Down

0 comments on commit f0ed208

Please sign in to comment.