Lines Matching refs:Input

3 use self::{Action::*, Input::*};
8 enum Input { enum
28 SetState(&'static [(Input, Action)]),
34 static INIT: [(Input, Action); 28] = [
65 static POSTFIX: [(Input, Action); 10] = [
78 static ASYNC: [(Input, Action); 3] = [
84 static BLOCK: [(Input, Action); 1] = [(ConsumeBrace, SetState(&POSTFIX))];
86 static BREAK_LABEL: [(Input, Action); 2] = [
91 static BREAK_VALUE: [(Input, Action); 3] = [
97 static CLOSURE: [(Input, Action); 7] = [
107 static CLOSURE_ARGS: [(Input, Action); 2] = [
112 static CLOSURE_RET: [(Input, Action); 2] = [
117 static CONST: [(Input, Action); 2] = [
122 static CONTINUE: [(Input, Action); 2] = [
127 static DOT: [(Input, Action); 3] = [
133 static FOR: [(Input, Action); 2] = [
138 static IF_ELSE: [(Input, Action); 2] = [(Keyword("if"), SetState(&INIT)), (ConsumeBrace, DecDepth)];
139 static IF_THEN: [(Input, Action); 2] =
142 static METHOD: [(Input, Action); 1] = [(ExpectTurbofish, SetState(&POSTFIX))];
144 static PATH: [(Input, Action); 4] = [
151 static PATTERN: [(Input, Action); 15] = [
169 static RANGE: [(Input, Action); 6] = [
178 static RAW: [(Input, Action); 3] = [
184 static REFERENCE: [(Input, Action); 3] = [
190 static RETURN: [(Input, Action); 2] = [
201 Input::Keyword(expected) => input.step(|cursor| match cursor.ident() { in scan_expr()
205 Input::Punct(expected) => input.step(|cursor| { in scan_expr()
222 Input::ConsumeAny => input.parse::<Option<TokenTree>>()?.is_some(), in scan_expr()
223 Input::ConsumeBinOp => input.parse::<BinOp>().is_ok(), in scan_expr()
224 Input::ConsumeBrace | Input::ConsumeNestedBrace => { in scan_expr()
225 (matches!(rule.0, Input::ConsumeBrace) || depth > 0) in scan_expr()
231 Input::ConsumeDelimiter => input.step(|cursor| match cursor.any_group() { in scan_expr()
235 Input::ConsumeIdent => input.parse::<Option<Ident>>()?.is_some(), in scan_expr()
236 Input::ConsumeLifetime => input.parse::<Option<Lifetime>>()?.is_some(), in scan_expr()
237 Input::ConsumeLiteral => input.parse::<Option<Lit>>()?.is_some(), in scan_expr()
238 Input::ExpectPath => { in scan_expr()
242 Input::ExpectTurbofish => { in scan_expr()
248 Input::ExpectType => { in scan_expr()
252 Input::CanBeginExpr => Expr::peek(input), in scan_expr()
253 Input::Otherwise => true, in scan_expr()
254 Input::Empty => input.is_empty() || input.peek(Token![,]), in scan_expr()