Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698