Skip to content

Commit

Permalink
chore: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Jul 12, 2024
1 parent 26e48bd commit 0763d67
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions crates/oxc_codegen/examples/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::{env, path::Path};

use oxc_allocator::Allocator;
use oxc_codegen::{CodeGenerator, CommentOptions, WhitespaceRemover};
use oxc_codegen::{CodeGenerator, WhitespaceRemover};
use oxc_parser::Parser;
use oxc_span::SourceType;

Expand All @@ -29,14 +29,7 @@ fn main() -> std::io::Result<()> {
println!("Original:");
println!("{source_text}");

let printed = CodeGenerator::new()
.enable_comment(
&source_text,
ret.trivias,
CommentOptions { preserve_annotate_comments: true },
)
.build(&ret.program)
.source_text;
let printed = CodeGenerator::new().build(&ret.program).source_text;
println!("Printed:");
println!("{printed}");

Expand Down

0 comments on commit 0763d67

Please sign in to comment.