mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
fix(ast): expose NumericLiteral.raw (#2588)
This is needed for Prettier to preserve the base when printing numbers. This is not in the spec but available in both Babel and TSESLint.
This commit is contained in:
parent
9d4e255a73
commit
1d657134ea
1 changed files with 0 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ pub struct NumericLiteral<'a> {
|
|||
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||
pub span: Span,
|
||||
pub value: f64,
|
||||
#[cfg_attr(feature = "serde", serde(skip))]
|
||||
pub raw: &'a str,
|
||||
#[cfg_attr(feature = "serde", serde(skip))]
|
||||
pub base: NumberBase,
|
||||
|
|
|
|||
Loading…
Reference in a new issue