mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-09 20:06:28 +00:00
more orthogonal interface
This commit is contained in:
parent
6ce587ba5a
commit
965585748e
2 changed files with 12 additions and 8 deletions
|
@ -68,7 +68,8 @@ pub(crate) fn to_parser_tokens(text: &str, lexer_tokens: &[lexer::Token]) -> ::p
|
|||
SyntaxKind::from_contextual_keyword(token_text).unwrap_or(SyntaxKind::IDENT);
|
||||
res.push_ident(contextual_kw);
|
||||
} else {
|
||||
res.push(was_joint, t.kind);
|
||||
res.was_joint(was_joint);
|
||||
res.push(t.kind);
|
||||
was_joint = true;
|
||||
}
|
||||
off += usize::from(t.len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue