oxc/crates/oxc_codegen/src
overlookmotel a0766e6a7f fix(codegen): fix arithmetic overflow printing unspanned nodes (#7292)
Similar to #7289. Check if `span.end` is 0 before doing `span.end - 1`, to prevent arithmetic overflow.

Also changed all checks to `span.end > 0`, just for consistency.
2024-11-15 16:04:02 +00:00
..
binary_expr_visitor.rs fix(codegen): print #field in {} << 0; correctly (#6799) 2024-10-23 05:34:22 +00:00
code_buffer.rs refactor(codegen)!: Codegen::into_source_text consume Codegen (#6539) 2024-10-14 01:09:03 +00:00
comment.rs fix(codegen): print comments when block is empty (#7236) 2024-11-11 11:20:25 +00:00
context.rs docs(codegen): add #![warn(missing_docs)] to oxc_codegen (#6711) 2024-10-21 00:13:57 +00:00
gen.rs fix(codegen): fix arithmetic overflow printing unspanned nodes (#7292) 2024-11-15 16:04:02 +00:00
lib.rs feat(codegen): print linked and external legal comment (#7059) 2024-11-02 04:08:14 +00:00
operator.rs refactor(codegen): restrict visibility of internal methods (#6145) 2024-09-28 14:33:42 +00:00
options.rs feat(codegen): print linked and external legal comment (#7059) 2024-11-02 04:08:14 +00:00
sourcemap_builder.rs refactor(codegen)!: remove Codegen::enableSourceMap API (#6452) 2024-10-12 04:56:43 +00:00