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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 11776008: 2nd Retry "Emit more stuff via ASTs" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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: sdk/lib/_internal/compiler/implementation/enqueue.dart
diff --git a/sdk/lib/_internal/compiler/implementation/enqueue.dart b/sdk/lib/_internal/compiler/implementation/enqueue.dart
index ccba536ff45e49a92b41aa971b2dd794d0267341..37b17c304f29317eff54b81f7b545649aa606188 100644
--- a/sdk/lib/_internal/compiler/implementation/enqueue.dart
+++ b/sdk/lib/_internal/compiler/implementation/enqueue.dart
@@ -68,13 +68,13 @@ class Enqueuer {
}
/**
- * Documentation wanted -- johnniwinther
+ * Unit test hook that returns code of an element as a String.
*
* Invariant: [element] must be a declaration element.
*/
String lookupCode(Element element) {
assert(invariant(element, element.isDeclaration));
- return universe.generatedCode[element].toString();
+ return js.prettyPrint(universe.generatedCode[element], compiler).getText();
}
/**
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/dart2jslib.dart ('k') | sdk/lib/_internal/compiler/implementation/js/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698