ASTGen: use classpath from preprocessed sketch

This commit is contained in:
Jakub Valtar
2016-04-14 20:02:28 +02:00
parent 955299bbb4
commit 1f78c75db0
2 changed files with 1 additions and 6 deletions

View File

@@ -128,11 +128,6 @@ public class ASTGenerator {
//loadJavaDoc();
}
/**
* Used for searching for package declaration of a class
*/
protected ClassPath classPath;
public static CompletionCandidate[] checkForTypes(ASTNode node) {
@@ -2659,6 +2654,7 @@ public class ASTGenerator {
// We're seeing a simple name that's not defined locally or in
// the parent class. So most probably a pre-defined type.
log("Empty can. " + phrase);
ClassPath classPath = errorCheckerService.latestResult.classPath;
if (classPath != null) {
RegExpResourceFilter regExpResourceFilter =
new RegExpResourceFilter(Pattern.compile(".*"),

View File

@@ -220,7 +220,6 @@ public class ErrorCheckerService {
public void run() {
synchronized (astGenerator) {
astGenerator.updateAST(latestResult.compilationUnit, tree);
astGenerator.classPath = result.classPath;
}
updateErrorTable(result.problems);
editor.updateErrorBar(result.problems);