Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 268574
Collapse All | Expand All

(-)src/org/eclipse/wst/jsdt/internal/compiler/Compiler.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 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 14-20 Link Here
14
import java.io.PrintWriter;
14
import java.io.PrintWriter;
15
import java.io.StringWriter;
15
import java.io.StringWriter;
16
16
17
import org.eclipse.wst.jsdt.core.IClassFile;
18
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
17
import org.eclipse.wst.jsdt.core.compiler.CategorizedProblem;
19
import org.eclipse.wst.jsdt.core.compiler.IProblem;
18
import org.eclipse.wst.jsdt.core.compiler.IProblem;
20
import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode;
19
import org.eclipse.wst.jsdt.internal.compiler.ast.ASTNode;
Lines 37-42 Link Here
37
import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemReporter;
36
import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemReporter;
38
import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemSeverities;
37
import org.eclipse.wst.jsdt.internal.compiler.problem.ProblemSeverities;
39
import org.eclipse.wst.jsdt.internal.compiler.util.Messages;
38
import org.eclipse.wst.jsdt.internal.compiler.util.Messages;
39
import org.eclipse.wst.jsdt.internal.core.builder.SourceFile;
40
import org.eclipse.wst.jsdt.internal.oaametadata.LibraryAPIs;
40
import org.eclipse.wst.jsdt.internal.oaametadata.LibraryAPIs;
41
41
42
public class Compiler implements ITypeRequestor, ProblemSeverities {
42
public class Compiler implements ITypeRequestor, ProblemSeverities {
Lines 224-230 Link Here
224
			parser.inferTypes(parsedUnit,this.options);
224
			parser.inferTypes(parsedUnit,this.options);
225
			// initial type binding creation
225
			// initial type binding creation
226
			lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction);
226
			lookupEnvironment.buildTypeBindings(parsedUnit, accessRestriction);
227
			if (!(sourceUnit instanceof IClassFile))
227
			if (sourceUnit instanceof SourceFile)
228
				this.addCompilationUnit(sourceUnit, parsedUnit);
228
				this.addCompilationUnit(sourceUnit, parsedUnit);
229
229
230
			// binding resolution
230
			// binding resolution

Return to bug 268574