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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.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/utilities/compiler/DartCompilerUtilities.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java
index d121490c7cf6a595a7d3c66b8667de212012d435..1fb20612e6c82f58be382401302f0e05ff752b64 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java
@@ -13,6 +13,7 @@
*/
package com.google.dart.tools.core.utilities.compiler;
+import com.google.common.collect.Sets;
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
import com.google.dart.compiler.CompilerConfiguration;
import com.google.dart.compiler.DartArtifactProvider;
@@ -28,7 +29,6 @@ import com.google.dart.compiler.SystemLibraryManager;
import com.google.dart.compiler.ast.DartNode;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryUnit;
-import com.google.dart.compiler.parser.CommentPreservingParser;
import com.google.dart.compiler.parser.DartParser;
import com.google.dart.compiler.resolver.LibraryElement;
import com.google.dart.compiler.util.DartSourceString;
@@ -400,14 +400,7 @@ public class DartCompilerUtilities {
}
private DartParser createParser() {
- if (preserveComments) {
- return new CommentPreservingParser(CommentPreservingParser.createContext(
- sourceRef,
- source,
- this), false);
- } else {
- return new DartParser(sourceRef, source, this);
- }
+ return new DartParser(sourceRef, source, false, Sets.<String> newHashSet(), this, null);
}
}
@@ -883,7 +876,7 @@ public class DartCompilerUtilities {
public static DartUnit secureParseUnit(DartParser parser, DartSource sourceRef) {
// All calls to DartC must be synchronized
synchronized (compilerLock) {
- return parser.parseUnit(sourceRef);
+ return parser.parseUnit();
}
}

Powered by Google App Engine
This is Rietveld 408576698