Lines 121-127
Link Here
|
121 |
typeDeclaration.bodyEnd = this.fieldDeclaration.declarationSourceEnd; |
121 |
typeDeclaration.bodyEnd = this.fieldDeclaration.declarationSourceEnd; |
122 |
} |
122 |
} |
123 |
if (recoveredType.preserveContent){ |
123 |
if (recoveredType.preserveContent){ |
124 |
fieldDeclaration.initialization = recoveredType.updatedTypeDeclaration().allocation; |
124 |
TypeDeclaration anonymousType = recoveredType.updatedTypeDeclaration(); |
|
|
125 |
fieldDeclaration.initialization = anonymousType.allocation; |
126 |
if(this.fieldDeclaration.declarationSourceEnd == 0) { |
127 |
int end = anonymousType.declarationSourceEnd; |
128 |
this.fieldDeclaration.declarationSourceEnd = end; |
129 |
this.fieldDeclaration.declarationEnd = end; |
130 |
} |
125 |
} |
131 |
} |
126 |
} |
132 |
} |
127 |
if (this.anonymousTypeCount > 0) fieldDeclaration.bits |= ASTNode.HasLocalType; |
133 |
if (this.anonymousTypeCount > 0) fieldDeclaration.bits |= ASTNode.HasLocalType; |