nonLabelledStatement method

Parser nonLabelledStatement()

Implementation

Parser nonLabelledStatement() =>
    ref0(block) |
    ref0(initializedVariableDeclaration) & ref1(token, ';') |
    ref0(iterationStatement) |
    ref0(selectionStatement) |
    ref0(tryStatement) |
    ref0(breakToken) & ref0(identifier).optional() & ref1(token, ';') |
    ref0(continueToken) & ref0(identifier).optional() & ref1(token, ';') |
    ref0(returnToken) & ref0(expression).optional() & ref1(token, ';') |
    ref0(throwToken) & ref0(expression).optional() & ref1(token, ';') |
    ref0(expression).optional() & ref1(token, ';') |
    ref0(assertToken) &
        ref1(token, '(') &
        ref0(conditionalExpression) &
        ref1(token, ')') &
        ref1(token, ';') |
    ref0(functionDeclaration) & ref0(functionBody);