Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 24, 2025
1 parent 3ff9196 commit 89a0aa8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_ast/src/utf8_to_utf16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ struct Translation {
}

impl Utf8ToUtf16 {
#[expect(missing_docs)]
/// Create new `Utf8ToUtf16` converter.
pub fn new() -> Self {
Self::default()
}

/// Convert all the spans in the AST.
/// Convert all the spans in the AST to UTF16.
pub fn convert(mut self, program: &mut Program<'_>) {
self.build_table(program.source_text);
// Skip if unicode is absent.
// Skip if source is entirely ASCII
if self.translations.is_empty() {
return;
}
Expand Down

0 comments on commit 89a0aa8

Please sign in to comment.