@Override protected synchronized void addCompilationUnit(ICompilationUnit sourceUnit, CompilationUnitDeclaration parsedUnit) { if (sourceUnit instanceof SourcepathDirectory.ClasspathCompilationUnit) { // this compilation unit represents dependency .java file // it is used to resolve type references and must not be processed otherwise return; } // growth of the internal unitsToProcess array is handled via multiplication of it's current size, // so if size is 0, we should just go ahead and handle it here. if (this.unitsToProcess.length == 0) { // start out with a size other than 0, so that it can be doubled safely by the super method. // starting with 4 to prevent the first couple of doublings and corresponding copying. this.unitsToProcess = new CompilationUnitDeclaration[4]; this.unitsToProcess[0] = parsedUnit; // this tracks the units added, it must be incremented ever time a new type is added. this.totalUnits = 1; } else { super.addCompilationUnit(sourceUnit, parsedUnit); } }
@Override protected synchronized void addCompilationUnit(ICompilationUnit sourceUnit, CompilationUnitDeclaration parsedUnit) { if (sourceUnit instanceof SourcepathDirectory.ClasspathCompilationUnit) { // this compilation unit represents dependency .java file // it is used to resolve type references and must not be processed otherwise return; } // growth of the internal unitsToProcess array is handled via multiplication of it's current size, // so if size is 0, we should just go ahead and handle it here. if (this.unitsToProcess.length == 0) { // start out with a size other than 0, so that it can be doubled safely by the super method. // starting with 4 to prevent the first couple of doublings and corresponding copying. this.unitsToProcess = new CompilationUnitDeclaration[4]; this.unitsToProcess[0] = parsedUnit; // this tracks the units added, it must be incremented ever time a new type is added. this.totalUnits = 1; } else { super.addCompilationUnit(sourceUnit, parsedUnit); } }
@Override protected synchronized void addCompilationUnit(ICompilationUnit sourceUnit, CompilationUnitDeclaration parsedUnit) { super.addCompilationUnit(sourceUnit, parsedUnit); mUnits.put((EcjSourceFile)sourceUnit, parsedUnit); }
@Override protected synchronized void addCompilationUnit(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, CompilationUnitDeclaration parsedUnit) { super.addCompilationUnit(sourceUnit, parsedUnit); m_sources.put(parsedUnit, sourceUnit); }
addCompilationUnit(sourceUnits[i], parsedUnit); ImportReference currentPackage = parsedUnit.currentPackage; if (currentPackage != null) {
addCompilationUnit(sourceUnits[i], parsedUnit); ImportReference currentPackage = parsedUnit.currentPackage; if (currentPackage != null) {
addCompilationUnit(sourceUnits[i], parsedUnit); ImportReference currentPackage = parsedUnit.currentPackage; if (currentPackage != null) {
addCompilationUnit(sourceUnits[i], parsedUnit); ImportReference currentPackage = parsedUnit.currentPackage; if (currentPackage != null) {
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);
addCompilationUnit(sourceUnit, parsedUnit);