mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
This PR correctly handles babel `options.json` such as https://github.com/babel/babel/blob/main/packages/babel-plugin-transform-nullish-coalescing-operator/test/fixtures/assumption-noDocumentAll/options.json
27 lines
468 B
Rust
27 lines
468 B
Rust
//! Common code for JavaScript Syntax
|
|
|
|
pub mod assumptions;
|
|
pub mod identifier;
|
|
pub mod module_record;
|
|
pub mod operator;
|
|
pub mod precedence;
|
|
pub mod reference;
|
|
pub mod scope;
|
|
pub mod symbol;
|
|
|
|
pub use unicode_id_start;
|
|
|
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
|
pub enum NumberBase {
|
|
Float,
|
|
Decimal,
|
|
Binary,
|
|
Octal,
|
|
Hex,
|
|
}
|
|
|
|
impl NumberBase {
|
|
pub fn is_base_10(&self) -> bool {
|
|
matches!(self, Self::Float | Self::Decimal)
|
|
}
|
|
}
|