Skip to content

Commit

Permalink
refactor(ast): oxc_ast crate re-export AST types from other crates (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
overlookmotel committed Aug 9, 2024
1 parent abd83fa commit daa0b2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/oxc_ast/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

0 comments on commit daa0b2e

Please sign in to comment.