Lines Matching refs:Action
3 use self::{Action::*, Input::*};
27 enum Action { 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] = [
257 Action::SetState(next) => next, in scan_expr()
258 Action::IncDepth => (depth += 1, &INIT).1, in scan_expr()
259 Action::DecDepth => (depth -= 1, &POSTFIX).1, in scan_expr()
260 Action::Finish => return if depth == 0 { Ok(()) } else { break }, in scan_expr()