Skip to content

Commit

Permalink
feat(ast_codegen): add ImplGetSpanGenerator. (#3852)
Browse files Browse the repository at this point in the history
This one is ready to replace the handwritten module.
  • Loading branch information
rzvxa committed Jun 25, 2024
1 parent f6c4ec4 commit 6a51f3c
Show file tree
Hide file tree
Showing 12 changed files with 2,576 additions and 797 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions crates/oxc_ast/src/ast_impl/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use std::{cell::Cell, hash::Hash};

use oxc_allocator::Vec;
use oxc_span::{Atom, GetSpan, Span};
use oxc_span::{Atom, Span};

use crate::ast::*;

Expand Down Expand Up @@ -103,15 +103,6 @@ impl<'a> TSTypeName<'a> {
}
}

impl GetSpan for TSTypeName<'_> {
fn span(&self) -> Span {
match self {
TSTypeName::IdentifierReference(ident) => ident.span,
TSTypeName::QualifiedName(name) => name.span,
}
}
}

impl<'a> TSTypeParameter<'a> {
pub fn new(
span: Span,
Expand Down
Loading

0 comments on commit 6a51f3c

Please sign in to comment.