mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Implement GetSpan for ImportDeclarationSpecifier (#483)
This commit is contained in:
parent
defba1567e
commit
4d1863a954
1 changed files with 10 additions and 0 deletions
|
|
@ -326,3 +326,13 @@ impl<'a> GetSpan for ExportDefaultDeclarationKind<'a> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl GetSpan for ImportDeclarationSpecifier {
|
||||
fn span(&self) -> Span {
|
||||
match self {
|
||||
Self::ImportSpecifier(specifier) => specifier.span,
|
||||
Self::ImportDefaultSpecifier(specifier) => specifier.span,
|
||||
Self::ImportNamespaceSpecifier(specifier) => specifier.span,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue