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

Unified Diff: dart/tests/compiler/dart2js/parser_helper.dart

Issue 11033003: Unparse new library syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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
« no previous file with comments | « dart/lib/compiler/implementation/tree/unparser.dart ('k') | dart/tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/parser_helper.dart
diff --git a/dart/tests/compiler/dart2js/parser_helper.dart b/dart/tests/compiler/dart2js/parser_helper.dart
index 37afdbe20ff6ee6d297cbd468f0cfde82c4e34f7..523e1f5dc9e2bfe891e5b38b00f9c87775e659f3 100644
--- a/dart/tests/compiler/dart2js/parser_helper.dart
+++ b/dart/tests/compiler/dart2js/parser_helper.dart
@@ -75,6 +75,10 @@ Link<Element> parseUnit(String text, Compiler compiler,
return unit.localMembers;
}
+NodeList fullParseUnit(String source) {
+ return parseBodyCode(source, (parser, tokens) => parser.parseUnit(tokens));
+}
+
// TODO(ahe): We define this method to avoid having to import
// the scanner in the tests. We should move SourceString to another
// location instead.
« no previous file with comments | « dart/lib/compiler/implementation/tree/unparser.dart ('k') | dart/tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698