Lines 1327-1332
Link Here
|
1327 |
} else { |
1327 |
} else { |
1328 |
enumConstantDeclaration.setSourceRange(declarationSourceStart, declarationSourceEnd - declarationSourceStart + 1); |
1328 |
enumConstantDeclaration.setSourceRange(declarationSourceStart, declarationSourceEnd - declarationSourceStart + 1); |
1329 |
} |
1329 |
} |
|
|
1330 |
setModifiers(enumConstantDeclaration, enumConstant); |
1330 |
if (this.resolveBindings) { |
1331 |
if (this.resolveBindings) { |
1331 |
recordNodes(enumConstantDeclaration, enumConstant); |
1332 |
recordNodes(enumConstantDeclaration, enumConstant); |
1332 |
recordNodes(typeName, enumConstant); |
1333 |
recordNodes(typeName, enumConstant); |
Lines 4239-4244
Link Here
|
4239 |
this.setModifiers(enumDeclaration, enumDeclaration2.annotations); |
4240 |
this.setModifiers(enumDeclaration, enumDeclaration2.annotations); |
4240 |
} |
4241 |
} |
4241 |
|
4242 |
|
|
|
4243 |
protected void setModifiers(EnumConstantDeclaration enumConstantDeclaration, org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration) { |
4244 |
switch(this.ast.apiLevel) { |
4245 |
case AST.JLS2_INTERNAL : |
4246 |
enumConstantDeclaration.internalSetModifiers(fieldDeclaration.modifiers & CompilerModifiers.AccJustFlag); |
4247 |
if (fieldDeclaration.annotations != null) { |
4248 |
enumConstantDeclaration.setFlags(enumConstantDeclaration.getFlags() | ASTNode.MALFORMED); |
4249 |
} |
4250 |
break; |
4251 |
case AST.JLS3 : |
4252 |
this.scanner.resetTo(fieldDeclaration.declarationSourceStart, fieldDeclaration.sourceStart); |
4253 |
this.setModifiers(enumConstantDeclaration, fieldDeclaration.annotations); |
4254 |
} |
4255 |
} |
4256 |
|
4242 |
/** |
4257 |
/** |
4243 |
* @param fieldDeclaration |
4258 |
* @param fieldDeclaration |
4244 |
* @param fieldDecl |
4259 |
* @param fieldDecl |