primary method

Parser primary()

Implementation

Parser primary() =>
    ref0(thisToken) |
    ref0(superToken) & ref0(assignableSelector) |
    ref0(constToken).optional() &
        ref0(typeArguments).optional() &
        ref0(compoundLiteral) |
    (ref0(newToken) | ref0(constToken)) &
        ref0(type) &
        (ref1(token, '.') & ref0(identifier)).optional() &
        ref0(arguments) |
    ref0(functionExpression) |
    ref0(expressionInParentheses) |
    ref0(literal) |
    ref0(identifier);