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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1932183003: Handle deserialized compilation of closures (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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: pkg/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index fb10635bea3c360447147046384b38a4df056af1..e6304dfeed30a800bb6e90cef3aba59000219829 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -151,7 +151,7 @@ abstract class ElementX extends Element with ElementCommon {
Name get memberName => new Name(name, library);
- LibraryElementX get implementationLibrary {
+ LibraryElement get implementationLibrary {
Element element = this;
while (!identical(element.kind, ElementKind.LIBRARY)) {
element = element.enclosingElement;
@@ -716,7 +716,8 @@ class CompilationUnitElementX extends ElementX
localMembers = localMembers.prepend(element);
// Provide the member to the library to build scope.
if (enclosingElement.isPatch) {
- implementationLibrary.addMember(element, reporter);
+ LibraryElementX library = implementationLibrary;
+ library.addMember(element, reporter);
} else {
library.addMember(element, reporter);
}

Powered by Google App Engine
This is Rietveld 408576698