Unnamed repository; edit this file 'description' to name the repository.
refactor(parser): Push higher level content
| -rw-r--r-- | crates/parser/src/lexed_str.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/parser/src/lexed_str.rs b/crates/parser/src/lexed_str.rs index edc3f406a6..c2d26b5dac 100644 --- a/crates/parser/src/lexed_str.rs +++ b/crates/parser/src/lexed_str.rs @@ -38,8 +38,7 @@ impl<'a> LexedStr<'a> { let _p = tracing::info_span!("LexedStr::new").entered(); let mut conv = Converter::new(edition, text); if let Some(shebang_len) = rustc_lexer::strip_shebang(text) { - conv.res.push(SHEBANG, conv.offset); - conv.offset = shebang_len; + conv.push(SHEBANG, shebang_len, Vec::new()); }; // Re-create the tokenizer from scratch every token because `GuardedStrPrefix` is one token in the lexer |