/** SuperSuffix = Arguments | "." [TypeArguments] Ident [Arguments] */ JCExpression superSuffix(List<JCExpression> typeArgs, JCExpression t) { nextToken(); if (token.kind == LPAREN || typeArgs != null) { t = arguments(typeArgs, t); } else if (token.kind == COLCOL) { if (typeArgs != null) return illegal(); t = memberReferenceSuffix(t); } else { int pos = token.pos; accept(DOT); typeArgs = (token.kind == LT) ? typeArguments(false) : null; t = toP(F.at(pos).Select(t, ident())); t = argumentsOpt(typeArgs, t); } return t; }
/** SuperSuffix = Arguments | "." [TypeArguments] Ident [Arguments] */ JCExpression superSuffix(List<JCExpression> typeArgs, JCExpression t) { nextToken(); if (token.kind == LPAREN || typeArgs != null) { t = arguments(typeArgs, t); } else if (token.kind == COLCOL) { if (typeArgs != null) return illegal(); t = memberReferenceSuffix(t); } else { int pos = token.pos; accept(DOT); typeArgs = (token.kind == LT) ? typeArguments(false) : null; t = toP(F.at(pos).Select(t, ident())); t = argumentsOpt(typeArgs, t); } return t; }
t = toP(F.at(tyannos.head.pos).AnnotatedType(tyannos, t)); t = argumentsOpt(typeArgs, typeArgumentsOpt(t)); typeArgs = null;
t = toP(F.at(tyannos.head.pos).AnnotatedType(tyannos, t)); t = argumentsOpt(typeArgs, typeArgumentsOpt(t)); typeArgs = null;
nextToken(); if (typeArgs == null) t = argumentsOpt(null, t); else t = arguments(typeArgs, t);
nextToken(); if (typeArgs == null) t = argumentsOpt(null, t); else t = arguments(typeArgs, t);