mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
switch to upstream rowan's API
This commit is contained in:
parent
7bde8012cb
commit
c9cfd57eea
22 changed files with 208 additions and 738 deletions
|
@ -1,4 +1,4 @@
|
|||
use ra_syntax::{ast, AstNode};
|
||||
use ra_syntax::{ast, AstNode, NodeOrToken};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
@ -118,11 +118,11 @@ pub fn debug_dump_ignore_spaces(node: &ra_syntax::SyntaxNode) -> String {
|
|||
match event {
|
||||
WalkEvent::Enter(element) => {
|
||||
match element {
|
||||
ra_syntax::SyntaxElement::Node(node) => {
|
||||
NodeOrToken::Node(node) => {
|
||||
indent!();
|
||||
writeln!(buf, "{:?}", node.kind()).unwrap();
|
||||
}
|
||||
ra_syntax::SyntaxElement::Token(token) => match token.kind() {
|
||||
NodeOrToken::Token(token) => match token.kind() {
|
||||
ra_syntax::SyntaxKind::WHITESPACE => {}
|
||||
_ => {
|
||||
indent!();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue