2865 |
2865 |
2866 /** AnnotationFieldValue = AnnotationValue |
2866 /** AnnotationFieldValue = AnnotationValue |
2867 * | Identifier "=" AnnotationValue |
2867 * | Identifier "=" AnnotationValue |
2868 */ |
2868 */ |
2869 JCExpression annotationFieldValue() { |
2869 JCExpression annotationFieldValue() { |
2870 if (token.kind == IDENTIFIER) { |
2870 if (LAX_IDENTIFIER.accepts(token.kind)) { |
2871 mode = EXPR; |
2871 mode = EXPR; |
2872 JCExpression t1 = term1(); |
2872 JCExpression t1 = term1(); |
2873 if (t1.hasTag(IDENT) && token.kind == EQ) { |
2873 if (t1.hasTag(IDENT) && token.kind == EQ) { |
2874 int pos = token.pos; |
2874 int pos = token.pos; |
2875 accept(EQ); |
2875 accept(EQ); |