diff options
Diffstat (limited to 'crates/ra_syntax/src/syntax_node.rs')
-rw-r--r-- | crates/ra_syntax/src/syntax_node.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/syntax_node.rs b/crates/ra_syntax/src/syntax_node.rs index 041c6ea8d..b3eb5da63 100644 --- a/crates/ra_syntax/src/syntax_node.rs +++ b/crates/ra_syntax/src/syntax_node.rs | |||
@@ -21,18 +21,18 @@ pub enum RustLanguage {} | |||
21 | impl Language for RustLanguage { | 21 | impl Language for RustLanguage { |
22 | type Kind = SyntaxKind; | 22 | type Kind = SyntaxKind; |
23 | 23 | ||
24 | fn kind_from_raw(raw: rowan::cursor::SyntaxKind) -> SyntaxKind { | 24 | fn kind_from_raw(raw: rowan::SyntaxKind) -> SyntaxKind { |
25 | SyntaxKind::from(raw.0) | 25 | SyntaxKind::from(raw.0) |
26 | } | 26 | } |
27 | 27 | ||
28 | fn kind_to_raw(kind: SyntaxKind) -> rowan::cursor::SyntaxKind { | 28 | fn kind_to_raw(kind: SyntaxKind) -> rowan::SyntaxKind { |
29 | rowan::cursor::SyntaxKind(kind.into()) | 29 | rowan::SyntaxKind(kind.into()) |
30 | } | 30 | } |
31 | } | 31 | } |
32 | 32 | ||
33 | pub type SyntaxNode = rowan::SyntaxNode<RustLanguage>; | 33 | pub type SyntaxNode = rowan::SyntaxNode<RustLanguage>; |
34 | pub type SyntaxToken = rowan::SyntaxToken<RustLanguage>; | 34 | pub type SyntaxToken = rowan::SyntaxToken<RustLanguage>; |
35 | pub type SyntaxElement = rowan::NodeOrToken<SyntaxNode, SyntaxToken>; | 35 | pub type SyntaxElement = rowan::SyntaxElement<RustLanguage>; |
36 | pub type SyntaxNodeChildren = rowan::SyntaxNodeChildren<RustLanguage>; | 36 | pub type SyntaxNodeChildren = rowan::SyntaxNodeChildren<RustLanguage>; |
37 | pub type SyntaxElementChildren = rowan::SyntaxElementChildren<RustLanguage>; | 37 | pub type SyntaxElementChildren = rowan::SyntaxElementChildren<RustLanguage>; |
38 | 38 | ||