diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-01-09 15:33:37 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-01-09 15:33:37 +0000 |
commit | c2bbfb9a5f614719c9805c7921653c8e4b85b1f1 (patch) | |
tree | a7d5f435cac7bdf2e8c24608e32588dc3ae42a11 /crates/ra_syntax/src/syntax_node.rs | |
parent | cf5bdf464cad7ceb9a67e07985a3f4d3799ec0b6 (diff) | |
parent | 47785b0cd4f6ea759ffcf87af453962bcf5053f1 (diff) |
Merge #2778
2778: :arrow_up: rowan r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 | ||