diff options
author | Edwin Cheng <[email protected]> | 2019-04-06 13:14:28 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-04-06 13:14:28 +0100 |
commit | aac9dfa46418603940ab2333cfea2190d9464d9e (patch) | |
tree | 83bc019e9961703ba1025c647a92ba4cd8e394af /crates/ra_parser/src/grammar.rs | |
parent | 1d7735fbc6795c3ea5f02950b47413e0b35d6677 (diff) |
Add TtCursorTokenSource and TtCursorTokenSink
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index b2ffeff8c..c5f510e6b 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs | |||
@@ -49,6 +49,10 @@ pub(crate) fn root(p: &mut Parser) { | |||
49 | m.complete(p, SOURCE_FILE); | 49 | m.complete(p, SOURCE_FILE); |
50 | } | 50 | } |
51 | 51 | ||
52 | pub(crate) fn path(p: &mut Parser) { | ||
53 | paths::type_path(p); | ||
54 | } | ||
55 | |||
52 | pub(crate) fn reparser( | 56 | pub(crate) fn reparser( |
53 | node: SyntaxKind, | 57 | node: SyntaxKind, |
54 | first_child: Option<SyntaxKind>, | 58 | first_child: Option<SyntaxKind>, |