Lines 3272-3284
Link Here
|
3272 |
enumConstant.modifiers = this.intStack[this.intPtr--]; |
3272 |
enumConstant.modifiers = this.intStack[this.intPtr--]; |
3273 |
enumConstant.declarationSourceStart = enumConstant.modifiersSourceStart; |
3273 |
enumConstant.declarationSourceStart = enumConstant.modifiersSourceStart; |
3274 |
|
3274 |
|
3275 |
// Store secondary info |
|
|
3276 |
if ((enumConstant.bits & ASTNode.IsMemberType) == 0 && (enumConstant.bits & ASTNode.IsLocalType) == 0) { |
3277 |
if (this.compilationUnit != null && !CharOperation.equals(enumConstant.name, this.compilationUnit.getMainTypeName())) { |
3278 |
enumConstant.bits |= ASTNode.IsSecondaryType; |
3279 |
} |
3280 |
} |
3281 |
|
3282 |
// consume annotations |
3275 |
// consume annotations |
3283 |
int length; |
3276 |
int length; |
3284 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
3277 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
Lines 3408-3413
Link Here
|
3408 |
if (enumDeclaration.modifiersSourceStart >= 0) { |
3401 |
if (enumDeclaration.modifiersSourceStart >= 0) { |
3409 |
enumDeclaration.declarationSourceStart = enumDeclaration.modifiersSourceStart; |
3402 |
enumDeclaration.declarationSourceStart = enumDeclaration.modifiersSourceStart; |
3410 |
} |
3403 |
} |
|
|
3404 |
|
3405 |
// Store secondary info |
3406 |
if ((enumDeclaration.bits & ASTNode.IsMemberType) == 0 && (enumDeclaration.bits & ASTNode.IsLocalType) == 0) { |
3407 |
if (this.compilationUnit != null && !CharOperation.equals(enumDeclaration.name, this.compilationUnit.getMainTypeName())) { |
3408 |
enumDeclaration.bits |= ASTNode.IsSecondaryType; |
3409 |
} |
3410 |
} |
3411 |
|
3411 |
// consume annotations |
3412 |
// consume annotations |
3412 |
int length; |
3413 |
int length; |
3413 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
3414 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
Lines 3487-3492
Link Here
|
3487 |
if (enumDeclaration.modifiersSourceStart >= 0) { |
3488 |
if (enumDeclaration.modifiersSourceStart >= 0) { |
3488 |
enumDeclaration.declarationSourceStart = enumDeclaration.modifiersSourceStart; |
3489 |
enumDeclaration.declarationSourceStart = enumDeclaration.modifiersSourceStart; |
3489 |
} |
3490 |
} |
|
|
3491 |
|
3492 |
// Store secondary info |
3493 |
if ((enumDeclaration.bits & ASTNode.IsMemberType) == 0 && (enumDeclaration.bits & ASTNode.IsLocalType) == 0) { |
3494 |
if (this.compilationUnit != null && !CharOperation.equals(enumDeclaration.name, this.compilationUnit.getMainTypeName())) { |
3495 |
enumDeclaration.bits |= ASTNode.IsSecondaryType; |
3496 |
} |
3497 |
} |
3498 |
|
3490 |
// consume annotations |
3499 |
// consume annotations |
3491 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
3500 |
if ((length = this.expressionLengthStack[this.expressionLengthPtr--]) != 0) { |
3492 |
System.arraycopy( |
3501 |
System.arraycopy( |