mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Implement GetSpan for JSXExpression
This commit is contained in:
parent
be13f980bb
commit
974dfa027f
1 changed files with 9 additions and 0 deletions
|
|
@ -366,3 +366,12 @@ impl<'a> GetSpan for JSXAttributeItem<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> GetSpan for JSXExpression<'a> {
|
||||
fn span(&self) -> Span {
|
||||
match &self {
|
||||
JSXExpression::Expression(expr) => expr.span(),
|
||||
JSXExpression::EmptyExpression(exmpty_expr) => exmpty_expr.span,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue