mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Cleanup
This commit is contained in:
parent
4ef6a49b44
commit
4303e741de
42 changed files with 433 additions and 468 deletions
|
@ -31,6 +31,7 @@ struct LexError {
|
|||
|
||||
impl<'a> LexedStr<'a> {
|
||||
pub fn new(text: &'a str) -> LexedStr<'a> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "LexedStr::new").entered();
|
||||
let mut conv = Converter::new(text);
|
||||
if let Some(shebang_len) = rustc_lexer::strip_shebang(text) {
|
||||
conv.res.push(SHEBANG, conv.offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue