primary method
Implementation
Parser<ExpressionNode> primary() => [
ref0(literal),
ref0(thisExpression),
ref0(superExpression),
ref0(functionExpression),
ref0(parenthesizedOrRecordLiteral),
ref0(switchExpression),
ref0(collectionLiteral),
ref0(constructorInvocation),
ref0(constructorInvocationWithTypeArguments),
ref0(identifierExpression),
].toChoiceParser();