From daa0b2e66e9661dfa997e132d68f6b8974b11f7e Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Fri, 9 Aug 2024 07:13:56 +0000 Subject: [PATCH] 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. --- crates/oxc_ast/src/ast/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/oxc_ast/src/ast/mod.rs b/crates/oxc_ast/src/ast/mod.rs index 54c88b0b6..c01ea74c1 100644 --- a/crates/oxc_ast/src/ast/mod.rs +++ b/crates/oxc_ast/src/ast/mod.rs @@ -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, + }, +};