mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
⬆️ rowan
It now stores text inline with tokens
This commit is contained in:
parent
46b4f89c92
commit
3429b32ad1
7 changed files with 12 additions and 17 deletions
|
@ -73,8 +73,7 @@ fn reparse_token<'node>(
|
|||
new_text.pop();
|
||||
}
|
||||
|
||||
let new_token =
|
||||
GreenToken::new(rowan::SyntaxKind(prev_token_kind.into()), new_text.into());
|
||||
let new_token = GreenToken::new(rowan::SyntaxKind(prev_token_kind.into()), &new_text);
|
||||
Some((
|
||||
prev_token.replace_with(new_token),
|
||||
new_err.into_iter().collect(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue