Skip to content

Commit c6e2ae1

Browse files
committed
feat: replace oxc_ast/src/span.rs with oxc_ast/src/generated/span.rs.
1 parent c9606fd commit c6e2ae1

File tree

6 files changed

+1808
-770
lines changed

6 files changed

+1808
-770
lines changed

crates/oxc_ast/src/ast_impl/ts.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use std::{cell::Cell, hash::Hash};
1010

1111
use oxc_allocator::Vec;
12-
use oxc_span::{Atom, GetSpan, Span};
12+
use oxc_span::{Atom, Span};
1313

1414
use crate::ast::Modifiers;
1515
use crate::ast::*;
@@ -104,15 +104,6 @@ impl<'a> TSTypeName<'a> {
104104
}
105105
}
106106

107-
impl GetSpan for TSTypeName<'_> {
108-
fn span(&self) -> Span {
109-
match self {
110-
TSTypeName::IdentifierReference(ident) => ident.span,
111-
TSTypeName::QualifiedName(name) => name.span,
112-
}
113-
}
114-
}
115-
116107
impl<'a> TSTypeParameter<'a> {
117108
pub fn new(
118109
span: Span,

0 commit comments

Comments
 (0)