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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompilerMainContext.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/DartCompilerMainContext.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
index 0bbc0639b1412db604664e8823c874341d8233df..e4071458d44d5a224e29fb454cfa53809c237d9a 100644
--- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
+++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java
@@ -6,6 +6,7 @@ package com.google.dart.compiler;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
+import com.google.common.collect.Sets;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.metrics.CompilerMetrics;
@@ -90,8 +91,8 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile
synchronized (this) {
if (appLibraryUnit == null) {
try {
- appLibraryUnit =
- DartParser.getSourceParser(lib, listener).preProcessLibraryDirectives(lib);
+ appLibraryUnit = new DartParser(lib, DartParser.read(lib), false,
+ Sets.<String> newHashSet(), listener, null).preProcessLibraryDirectives(lib);
} catch (IOException e) {
onError(new DartCompilationError(lib, DartCompilerErrorCode.IO, e.getMessage()));
return null;
@@ -148,7 +149,8 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile
return getApplicationUnit();
}
try {
- return DartParser.getSourceParser(libSrc, listener).preProcessLibraryDirectives(libSrc);
+ return new DartParser(libSrc, DartParser.read(libSrc), false,
+ Sets.<String> newHashSet(), listener, null).preProcessLibraryDirectives(libSrc);
} catch (IOException e) {
onError(new DartCompilationError(libSrc, DartCompilerErrorCode.IO, e.getMessage()));
return null;

Powered by Google App Engine
This is Rietveld 408576698