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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.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/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index 2a6d74e0b30590c153dcb2b88c99d444b236ab66..695c2f7cfc9e846451402aeba6548578a8b3ad73 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -28,7 +28,6 @@ import com.google.dart.compiler.metrics.JvmMetrics;
import com.google.dart.compiler.metrics.Tracer;
import com.google.dart.compiler.metrics.Tracer.TraceEvent;
import com.google.dart.compiler.parser.DartParser;
-import com.google.dart.compiler.parser.DartScannerParserContext;
import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
import com.google.dart.compiler.resolver.CompileTimeConstantResolver;
import com.google.dart.compiler.resolver.CoreTypeProvider;
@@ -844,10 +843,9 @@ public class DartCompiler {
srcCode += "\nvoid assert(x) {}";
}
- DartScannerParserContext parserContext =
- new DartScannerParserContext(dartSrc, srcCode, context, context.getCompilerMetrics());
- DartParser parser = new DartParser(parserContext, libraryPrefixes, diet);
- DartUnit unit = parser.parseUnit(dartSrc);
+ DartParser parser = new DartParser(dartSrc, srcCode, diet, libraryPrefixes, context,
+ context.getCompilerMetrics());
+ DartUnit unit = parser.parseUnit();
if (compilerMetrics != null) {
compilerMetrics.addParseTimeNano(CompilerMetrics.getThreadTime() - parseStart);
}

Powered by Google App Engine
This is Rietveld 408576698