Lines 16-21
Link Here
|
16 |
import org.eclipse.jdt.internal.compiler.ast.Block; |
16 |
import org.eclipse.jdt.internal.compiler.ast.Block; |
17 |
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration; |
17 |
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration; |
18 |
import org.eclipse.jdt.internal.compiler.ast.Initializer; |
18 |
import org.eclipse.jdt.internal.compiler.ast.Initializer; |
|
|
19 |
import org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression; |
19 |
import org.eclipse.jdt.internal.compiler.ast.Statement; |
20 |
import org.eclipse.jdt.internal.compiler.ast.Statement; |
20 |
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; |
21 |
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; |
21 |
import org.eclipse.jdt.internal.compiler.ast.TypeParameter; |
22 |
import org.eclipse.jdt.internal.compiler.ast.TypeParameter; |
Lines 308-314
Link Here
|
308 |
TypeDeclaration updatedType = this.updatedTypeDeclaration(); |
309 |
TypeDeclaration updatedType = this.updatedTypeDeclaration(); |
309 |
if ((updatedType.bits & ASTNode.IsAnonymousType) != 0){ |
310 |
if ((updatedType.bits & ASTNode.IsAnonymousType) != 0){ |
310 |
/* in presence of an anonymous type, we want the full allocation expression */ |
311 |
/* in presence of an anonymous type, we want the full allocation expression */ |
311 |
return updatedType.allocation; |
312 |
QualifiedAllocationExpression allocation = updatedType.allocation; |
|
|
313 |
|
314 |
if (allocation.statementEnd == -1) { |
315 |
allocation.statementEnd = updatedType.declarationSourceEnd; |
316 |
} |
317 |
return allocation; |
312 |
} |
318 |
} |
313 |
return updatedType; |
319 |
return updatedType; |
314 |
} |
320 |
} |