Lines 4361-4366
Link Here
|
4361 |
int indexInAnnotations = 0; |
4361 |
int indexInAnnotations = 0; |
4362 |
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { |
4362 |
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { |
4363 |
IExtendedModifier modifier = null; |
4363 |
IExtendedModifier modifier = null; |
|
|
4364 |
switchToken: |
4364 |
switch(token) { |
4365 |
switch(token) { |
4365 |
case TerminalTokens.TokenNameabstract: |
4366 |
case TerminalTokens.TokenNameabstract: |
4366 |
modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD); |
4367 |
modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD); |
Lines 4398-4404
Link Here
|
4398 |
case TerminalTokens.TokenNameAT : |
4399 |
case TerminalTokens.TokenNameAT : |
4399 |
// we have an annotation |
4400 |
// we have an annotation |
4400 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4401 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4401 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4402 |
// method may have synthetic annotations, skip them: |
|
|
4403 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation; |
4404 |
do { |
4405 |
if (indexInAnnotations == annotations.length) |
4406 |
break switchToken; |
4407 |
annotation = annotations[indexInAnnotations++]; |
4408 |
} while ((annotation.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsSynthetic) != 0); |
4402 |
modifier = convert(annotation); |
4409 |
modifier = convert(annotation); |
4403 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, modifiersEnd); |
4410 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, modifiersEnd); |
4404 |
} |
4411 |
} |
Lines 4512-4517
Link Here
|
4512 |
int token; |
4519 |
int token; |
4513 |
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { |
4520 |
while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) { |
4514 |
IExtendedModifier modifier = null; |
4521 |
IExtendedModifier modifier = null; |
|
|
4522 |
switchToken: |
4515 |
switch(token) { |
4523 |
switch(token) { |
4516 |
case TerminalTokens.TokenNameabstract: |
4524 |
case TerminalTokens.TokenNameabstract: |
4517 |
modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD); |
4525 |
modifier = createModifier(Modifier.ModifierKeyword.ABSTRACT_KEYWORD); |
Lines 4549-4555
Link Here
|
4549 |
case TerminalTokens.TokenNameAT : |
4557 |
case TerminalTokens.TokenNameAT : |
4550 |
// we have an annotation |
4558 |
// we have an annotation |
4551 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4559 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4552 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4560 |
// argument may have synthetic annotations, skip them: |
|
|
4561 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation; |
4562 |
do { |
4563 |
if (indexInAnnotations == annotations.length) |
4564 |
break switchToken; |
4565 |
annotation = annotations[indexInAnnotations++]; |
4566 |
} while ((annotation.bits & org.eclipse.jdt.internal.compiler.ast.ASTNode.IsSynthetic) != 0); |
4553 |
modifier = convert(annotation); |
4567 |
modifier = convert(annotation); |
4554 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4568 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4555 |
} |
4569 |
} |
Lines 4623-4628
Link Here
|
4623 |
break; |
4637 |
break; |
4624 |
case TerminalTokens.TokenNameAT : |
4638 |
case TerminalTokens.TokenNameAT : |
4625 |
// we have an annotation |
4639 |
// we have an annotation |
|
|
4640 |
// (local variable has no synthetic annotations, no need to skip them) |
4626 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4641 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4627 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4642 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4628 |
modifier = convert(annotation); |
4643 |
modifier = convert(annotation); |
Lines 4725-4730
Link Here
|
4725 |
break; |
4740 |
break; |
4726 |
case TerminalTokens.TokenNameAT : |
4741 |
case TerminalTokens.TokenNameAT : |
4727 |
// we have an annotation |
4742 |
// we have an annotation |
|
|
4743 |
// (local variable has no synthetic annotations, no need to skip them) |
4728 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4744 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4729 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4745 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4730 |
modifier = convert(annotation); |
4746 |
modifier = convert(annotation); |
Lines 4806-4811
Link Here
|
4806 |
break; |
4822 |
break; |
4807 |
case TerminalTokens.TokenNameAT : |
4823 |
case TerminalTokens.TokenNameAT : |
4808 |
// we have an annotation |
4824 |
// we have an annotation |
|
|
4825 |
// (local variable has no synthetic annotations, no need to skip them) |
4809 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4826 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4810 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4827 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4811 |
modifier = convert(annotation); |
4828 |
modifier = convert(annotation); |