selectionStatement method
Parser
selectionStatement()
Implementation
Parser selectionStatement() =>
ref0(ifToken) &
ref1(token, '(') &
ref0(expression) &
ref1(token, ')') &
ref0(statement) &
(ref0(elseToken) & ref0(statement)).optional() |
ref0(switchToken) &
ref1(token, '(') &
ref0(expression) &
ref1(token, ')') &
ref1(token, '{') &
ref0(switchCase).star() &
ref0(defaultCase).optional() &
ref1(token, '}');