Lines 4377-4384
Link Here
|
4377 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4377 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4378 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4378 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4379 |
modifier = convert(annotation); |
4379 |
modifier = convert(annotation); |
4380 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.scanner.eofPosition); |
4380 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4381 |
} |
4381 |
} |
|
|
4382 |
break; |
4383 |
case TerminalTokens.TokenNameCOMMENT_BLOCK : |
4384 |
case TerminalTokens.TokenNameCOMMENT_LINE : |
4385 |
case TerminalTokens.TokenNameCOMMENT_JAVADOC : |
4386 |
break; |
4387 |
default : |
4388 |
return; |
4382 |
} |
4389 |
} |
4383 |
if (modifier != null) { |
4390 |
if (modifier != null) { |
4384 |
variableDecl.modifiers().add(modifier); |
4391 |
variableDecl.modifiers().add(modifier); |
Lines 4445-4452
Link Here
|
4445 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4452 |
if (annotations != null && indexInAnnotations < annotations.length) { |
4446 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4453 |
org.eclipse.jdt.internal.compiler.ast.Annotation annotation = annotations[indexInAnnotations++]; |
4447 |
modifier = convert(annotation); |
4454 |
modifier = convert(annotation); |
4448 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.scanner.eofPosition); |
4455 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4449 |
} |
4456 |
} |
|
|
4457 |
break; |
4458 |
case TerminalTokens.TokenNameCOMMENT_BLOCK : |
4459 |
case TerminalTokens.TokenNameCOMMENT_LINE : |
4460 |
case TerminalTokens.TokenNameCOMMENT_JAVADOC : |
4461 |
break; |
4462 |
default : |
4463 |
return; |
4450 |
} |
4464 |
} |
4451 |
if (modifier != null) { |
4465 |
if (modifier != null) { |
4452 |
variableDecl.modifiers().add(modifier); |
4466 |
variableDecl.modifiers().add(modifier); |
Lines 4542-4547
Link Here
|
4542 |
modifier = convert(annotation); |
4556 |
modifier = convert(annotation); |
4543 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4557 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4544 |
} |
4558 |
} |
|
|
4559 |
break; |
4560 |
case TerminalTokens.TokenNameCOMMENT_BLOCK : |
4561 |
case TerminalTokens.TokenNameCOMMENT_LINE : |
4562 |
case TerminalTokens.TokenNameCOMMENT_JAVADOC : |
4563 |
break; |
4564 |
default : |
4565 |
return; |
4545 |
} |
4566 |
} |
4546 |
if (modifier != null) { |
4567 |
if (modifier != null) { |
4547 |
variableDeclarationExpression.modifiers().add(modifier); |
4568 |
variableDeclarationExpression.modifiers().add(modifier); |
Lines 4616-4621
Link Here
|
4616 |
modifier = convert(annotation); |
4637 |
modifier = convert(annotation); |
4617 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4638 |
this.scanner.resetTo(annotation.declarationSourceEnd + 1, this.compilationUnitSourceLength); |
4618 |
} |
4639 |
} |
|
|
4640 |
break; |
4641 |
case TerminalTokens.TokenNameCOMMENT_BLOCK : |
4642 |
case TerminalTokens.TokenNameCOMMENT_LINE : |
4643 |
case TerminalTokens.TokenNameCOMMENT_JAVADOC : |
4644 |
break; |
4645 |
default : |
4646 |
return; |
4619 |
} |
4647 |
} |
4620 |
if (modifier != null) { |
4648 |
if (modifier != null) { |
4621 |
variableDeclarationStatement.modifiers().add(modifier); |
4649 |
variableDeclarationStatement.modifiers().add(modifier); |