-
-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codegen: remove underscore from bigint #7285
Comments
Please also see #7254. Of the options outlined there, personally I'd tend towards the option of removing the In my view, the ideal solution would be to parse the BigInt's value in the parser. At that point we are running through the source text byte-by-byte anyway. I would propose:
pub struct BigIntLiteral<'a> {
pub span: Span,
pub value: &'a str,
pub raw: &'a str, // Leave for now, but likely remove later
} In parser, parse it to a oxc/crates/oxc_ast/src/serialize.rs Lines 68 to 93 in f0affa2
Then codegen can print the A bit of background: Originally However, removing the underscores in codegen is an improvement on how it is now - not a bad interim solution. |
Good catch, underscore should be removed from codegen.
Originally posted by @Boshen in #7280 (comment)
The text was updated successfully, but these errors were encountered: