|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2012 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2013 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 5126-5147
Link Here
|
| 5126 |
this.identifierLengthPtr--; |
5126 |
this.identifierLengthPtr--; |
| 5127 |
} else { |
5127 |
} else { |
| 5128 |
this.identifierLengthStack[this.identifierLengthPtr]--; |
5128 |
this.identifierLengthStack[this.identifierLengthPtr]--; |
| 5129 |
int length = this.typeAnnotationLengthStack[this.typeAnnotationLengthPtr--]; |
|
|
| 5130 |
Annotation [] typeAnnotations; |
| 5131 |
if (length != 0) { |
| 5132 |
System.arraycopy( |
| 5133 |
this.typeAnnotationStack, |
| 5134 |
(this.typeAnnotationPtr -= length) + 1, |
| 5135 |
typeAnnotations = new Annotation[length], |
| 5136 |
0, |
| 5137 |
length); |
| 5138 |
problemReporter().misplacedTypeAnnotations(typeAnnotations[0], typeAnnotations[typeAnnotations.length - 1]); |
| 5139 |
} |
| 5140 |
m.receiver = getUnspecifiedReference(); |
5129 |
m.receiver = getUnspecifiedReference(); |
| 5141 |
m.sourceStart = m.receiver.sourceStart; |
5130 |
m.sourceStart = m.receiver.sourceStart; |
| 5142 |
} |
5131 |
} |
|
|
5132 |
rejectTypeAnnotationsOnMethodInvocation(); |
| 5143 |
pushOnExpressionStack(m); |
5133 |
pushOnExpressionStack(m); |
| 5144 |
} |
5134 |
} |
|
|
5135 |
private void rejectTypeAnnotationsOnMethodInvocation() { |
| 5136 |
int length = this.typeAnnotationLengthStack[this.typeAnnotationLengthPtr--]; |
| 5137 |
Annotation [] typeAnnotations; |
| 5138 |
if (length != 0) { |
| 5139 |
System.arraycopy( |
| 5140 |
this.typeAnnotationStack, |
| 5141 |
(this.typeAnnotationPtr -= length) + 1, |
| 5142 |
typeAnnotations = new Annotation[length], |
| 5143 |
0, |
| 5144 |
length); |
| 5145 |
problemReporter().misplacedTypeAnnotations(typeAnnotations[0], typeAnnotations[typeAnnotations.length - 1]); |
| 5146 |
} |
| 5147 |
} |
| 5145 |
protected void consumeMethodInvocationNameWithTypeArguments() { |
5148 |
protected void consumeMethodInvocationNameWithTypeArguments() { |
| 5146 |
// MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')' |
5149 |
// MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')' |
| 5147 |
|
5150 |
|