Lines 221-227
Link Here
|
221 |
} |
221 |
} |
222 |
// initial type binding creation |
222 |
// initial type binding creation |
223 |
lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction); |
223 |
lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction); |
224 |
this.addCompilationUnit(sourceUnit, parsedUnit); |
224 |
this.addCompilationUnit(parsedUnit); |
225 |
|
225 |
|
226 |
// binding resolution |
226 |
// binding resolution |
227 |
lookupEnvironment.completeTypeBindings(parsedUnit); |
227 |
lookupEnvironment.completeTypeBindings(parsedUnit); |
Lines 248-257
Link Here
|
248 |
} |
248 |
} |
249 |
|
249 |
|
250 |
protected void addCompilationUnit( |
250 |
protected void addCompilationUnit( |
251 |
ICompilationUnit sourceUnit, |
|
|
252 |
CompilationUnitDeclaration parsedUnit) { |
251 |
CompilationUnitDeclaration parsedUnit) { |
253 |
|
252 |
|
254 |
// append the unit to the list of ones to process later on |
253 |
// append the unit to the list of ones to process later on |
|
|
254 |
if (this.unitsToProcess == null) { |
255 |
this.unitsToProcess = new CompilationUnitDeclaration[1]; |
256 |
} |
255 |
int size = unitsToProcess.length; |
257 |
int size = unitsToProcess.length; |
256 |
if (totalUnits == size) |
258 |
if (totalUnits == size) |
257 |
// when growing reposition units starting at position 0 |
259 |
// when growing reposition units starting at position 0 |
Lines 296-302
Link Here
|
296 |
} |
298 |
} |
297 |
// initial type binding creation |
299 |
// initial type binding creation |
298 |
lookupEnvironment.buildTypeBindings(parsedUnit, null /*no access restriction*/); |
300 |
lookupEnvironment.buildTypeBindings(parsedUnit, null /*no access restriction*/); |
299 |
this.addCompilationUnit(sourceUnits[i], parsedUnit); |
301 |
this.addCompilationUnit(parsedUnit); |
300 |
//} catch (AbortCompilationUnit e) { |
302 |
//} catch (AbortCompilationUnit e) { |
301 |
// requestor.acceptResult(unitResult.tagAsAccepted()); |
303 |
// requestor.acceptResult(unitResult.tagAsAccepted()); |
302 |
} finally { |
304 |
} finally { |