| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java
|
| index a8776a8f033c59d5ecb2389f30c03a6a14cda8d6..dbe72c23ec7bf0186da47a35928c48a92ed1e68e 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java
|
| @@ -54,8 +54,6 @@ import com.google.dart.compiler.ast.DartVariableStatement;
|
| import com.google.dart.compiler.ast.DartWhileStatement;
|
| import com.google.dart.compiler.ast.LibraryUnit;
|
| import com.google.dart.compiler.common.SourceInfo;
|
| -import com.google.dart.compiler.parser.DartScannerParserContext;
|
| -import com.google.dart.compiler.parser.ParserContext;
|
| import com.google.dart.compiler.resolver.ClassElement;
|
| import com.google.dart.compiler.resolver.ClassNodeElement;
|
| import com.google.dart.compiler.resolver.ConstructorElement;
|
| @@ -1462,7 +1460,6 @@ public class CompletionEngine {
|
| CompletionMetrics metrics = requestor.getMetrics();
|
|
|
| DartCompilerListener listener = DartCompilerListener.EMPTY;
|
| - ParserContext ctx = new DartScannerParserContext(sourceFile, source, listener);
|
| prefixes = new HashSet<String>();
|
| if (currentCompilationUnit != null) {
|
| DartImport[] imports = currentCompilationUnit.getLibrary().getImports();
|
| @@ -1473,7 +1470,7 @@ public class CompletionEngine {
|
| }
|
| }
|
| }
|
| - CompletionParser parser = new CompletionParser(ctx, prefixes);
|
| + CompletionParser parser = new CompletionParser(sourceFile, source, prefixes, listener, null);
|
| parser.setCompletionPosition(completionPosition);
|
| parsedUnit = DartCompilerUtilities.secureParseUnit(parser, sourceFile);
|
|
|
|
|