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

Unified Diff: compiler/java/com/google/dart/compiler/DeltaAnalyzer.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: compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java b/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
index 111879e98ee0f3e09f45d4ece1399686e4936619..e7c2ec54a4c9a546f68d45aedec69082decc3c10 100644
--- a/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
@@ -4,6 +4,7 @@
package com.google.dart.compiler;
+import com.google.common.collect.Sets;
import com.google.common.io.CharStreams;
import com.google.common.io.Closeables;
import com.google.dart.compiler.ast.DartNode;
@@ -12,7 +13,6 @@ import com.google.dart.compiler.ast.LibraryNode;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.parser.DartParser;
-import com.google.dart.compiler.parser.DartScannerParserContext;
import com.google.dart.compiler.resolver.CoreTypeProvider;
import com.google.dart.compiler.resolver.CoreTypeProviderImplementation;
import com.google.dart.compiler.resolver.Element;
@@ -58,7 +58,7 @@ class DeltaAnalyzer {
DartUnit unit = delta.getUnitAfter();
if (unit == null) {
DartSource source = delta.getSourceAfter();
- unit = getParser(source).parseUnit(source);
+ unit = getParser(source).parseUnit();
}
Scope scope = deltaLibraryScope(originalSource, unit);
// We have to create supertypes and member elements for the entire unit. For example, if you're
@@ -150,7 +150,7 @@ class DeltaAnalyzer {
Reader r = source.getSourceReader();
String sourceString = CharStreams.toString(r);
Closeables.close(r, false);
- return new DartParser(new DartScannerParserContext(source, sourceString, listener), false);
+ return new DartParser(source, sourceString, false, Sets.<String>newHashSet(), listener, null);
}
private class Context implements DartCompilerListener, DartCompilerContext {

Powered by Google App Engine
This is Rietveld 408576698