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

Unified Diff: frog/tests/leg/parser_helper.dart

Issue 10310040: Sort the output (for now just the classes and instance members). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 8 years, 7 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 | « frog/tests/leg/class_order_test.dart ('k') | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/parser_helper.dart
diff --git a/frog/tests/leg/parser_helper.dart b/frog/tests/leg/parser_helper.dart
index 9037058fe58559aa8bd70dd0f612267b21d4fd5d..3835bd80708c46627c6b312aefcef8ef432d3f87 100644
--- a/frog/tests/leg/parser_helper.dart
+++ b/frog/tests/leg/parser_helper.dart
@@ -59,7 +59,8 @@ Link<Element> parseUnit(String text, Compiler compiler,
Uri uri = new Uri(scheme: "source");
var script = new Script(uri, new MockFile(text));
var unit = new CompilationUnitElement(script, library);
- ElementListener listener = new ElementListener(compiler, unit);
+ int id = 0;
+ ElementListener listener = new ElementListener(compiler, unit, () => id++);
PartialParser parser = new PartialParser(listener);
compiler.withCurrentElement(unit, () => parser.parseUnit(tokens));
return unit.topLevelElements;
« no previous file with comments | « frog/tests/leg/class_order_test.dart ('k') | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698