mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(ast): oxc_ast crate re-export AST types from other crates (#4773)
Some AST types are defined in crates outside `oxc_ast` crate. Re-export these types from `oxc_ast` crate for ease - so you don't need to remember where they're defined to use them.
This commit is contained in:
parent
abd83fa998
commit
daa0b2e66e
1 changed files with 9 additions and 0 deletions
|
|
@ -183,3 +183,12 @@ mod ts;
|
|||
use macros::inherit_variants;
|
||||
|
||||
pub use self::{js::*, jsx::*, literal::*, ts::*};
|
||||
|
||||
// Re-export AST types from other crates
|
||||
pub use oxc_span::{Atom, Language, LanguageVariant, ModuleKind, SourceType, Span};
|
||||
pub use oxc_syntax::{
|
||||
number::{BigintBase, NumberBase},
|
||||
operator::{
|
||||
AssignmentOperator, BinaryOperator, LogicalOperator, UnaryOperator, UpdateOperator,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue