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

Unified Diff: lib/src/info.dart

Issue 1011153002: js: fix core.Object, output order, static const fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « lib/src/codegen/js_codegen.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 80413fdad92524f3a2bd3aab992a2d3b0afc0139..60ea76c6e0dd276cd6d4de4c1d2f125e0ee5c05f 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -47,6 +47,18 @@ class LibraryInfo {
name = utils.canonicalLibraryName(library);
}
+class LibraryUnit {
+ final CompilationUnit library;
+ final List<CompilationUnit> parts;
+
+ LibraryUnit(this.library, this.parts);
+
+ Iterable<CompilationUnit> get units sync* {
Jennifer Messerly 2015/03/17 18:58:45 =D
+ yield library;
Jennifer Messerly 2015/03/17 19:03:05 on second thought... we could just reverse the ord
Jennifer Messerly 2015/03/17 19:11:52 I went ahead and made both orders possible. Kept a
+ yield* parts;
+ }
+}
+
// The abstract type of coercions mapping one type to another.
// This class also exposes static builder functions which
// check for errors and reduce redundant coercions to the identity.
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | lib/src/js/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698