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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart

Issue 661783002: dart2js: Add support for static fields to new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/js_emitter/registry.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
index a0a078dac9352319bfb1e1e5b0027bb4d55e4c4f..64d29a8f3623175ec65ea29fce85bcef5bb63df3 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/registry.dart
@@ -24,6 +24,8 @@ class Fragment {
Fragment.main(this.outputUnit) : name = "";
Fragment.deferred(this.outputUnit, this.name);
kasperl 2014/10/17 06:47:04 Assert that name isn't empty?
floitsch 2014/10/17 09:25:56 Done.
+ bool get isMainFragment => name == "";
kasperl 2014/10/17 06:47:04 I guess this is more convenient than asking the re
floitsch 2014/10/17 09:25:56 Since we already have the field in the registry I
+
void add(LibraryElement library, Element element) {
if (_lastLibrary != library) {
_lastLibrary = library;

Powered by Google App Engine
This is Rietveld 408576698