Skip to content

Commit ccf8ff8

Browse files
rzvxaBoshen
authored andcommitted
feat: replace oxc_ast/src/span.rs with oxc_ast/src/generated/span.rs.
1 parent 1ce0815 commit ccf8ff8

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::*;
1515

@@ -103,15 +103,6 @@ impl<'a> TSTypeName<'a> {
103103
}
104104
}
105105

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

0 commit comments

Comments
 (0)