mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
ASTGen: use classpath from preprocessed sketch
This commit is contained in:
@@ -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(".*"),
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user