diff options
author | Josh Robson Chase <[email protected]> | 2019-01-23 18:14:34 +0000 |
---|---|---|
committer | Josh Robson Chase <[email protected]> | 2019-01-23 18:19:49 +0000 |
commit | 3b70acad0106e4ffe5ee68d565c9130b5b271e22 (patch) | |
tree | 72b32afb919c5317219c0891ced8c9725d622bbc /crates/ra_syntax/src/parser_api.rs | |
parent | 1cd6d6539a9d85bc44db364bb9165e6d9253790d (diff) |
Use IDENT for both raw and normal idents
Diffstat (limited to 'crates/ra_syntax/src/parser_api.rs')
-rw-r--r-- | crates/ra_syntax/src/parser_api.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/crates/ra_syntax/src/parser_api.rs b/crates/ra_syntax/src/parser_api.rs index d795cbaf1..3148371c5 100644 --- a/crates/ra_syntax/src/parser_api.rs +++ b/crates/ra_syntax/src/parser_api.rs | |||
@@ -100,14 +100,6 @@ impl<'t> Parser<'t> { | |||
100 | true | 100 | true |
101 | } | 101 | } |
102 | 102 | ||
103 | /// Consume the next token matching one of the `kinds` | ||
104 | pub(crate) fn eat_one<'k, K>(&mut self, kinds: K) -> bool | ||
105 | where | ||
106 | K: IntoIterator<Item = &'k SyntaxKind> + 'k, | ||
107 | { | ||
108 | kinds.into_iter().map(|k| self.eat(*k)).any(|eaten| eaten) | ||
109 | } | ||
110 | |||
111 | /// Consume the next token if it is `kind` or emit an error | 103 | /// Consume the next token if it is `kind` or emit an error |
112 | /// otherwise. | 104 | /// otherwise. |
113 | pub(crate) fn expect(&mut self, kind: SyntaxKind) -> bool { | 105 | pub(crate) fn expect(&mut self, kind: SyntaxKind) -> bool { |