Chromium Code Reviews| 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; |