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

Unified Diff: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart

Issue 2731173002: Add ClassEntity.library, MemberEntity.library and FunctionEntity.isExternal (Closed)
Patch Set: Updated cf. comments. Created 3 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
Index: pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index 5a70e55c1acad9ba35003d20772d1667a34aa0f6..9298d5120654ef551e9c6d6d3d02b3e615d96f36 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -477,23 +477,24 @@ class MemberTypeInformation extends ElementTypeInformation
// goes in the work queue.
giveUp(inferrer);
if (element.isField) {
+ FieldElement field = element;
return inferrer
.typeOfNativeBehavior(
- inferrer.backend.nativeData.getNativeFieldLoadBehavior(element))
+ inferrer.backend.nativeData.getNativeFieldLoadBehavior(field))
.type;
} else {
assert(element.isFunction ||
element.isGetter ||
element.isSetter ||
element.isConstructor);
- TypedElement typedElement = element;
- var elementType = typedElement.type;
+ MethodElement methodElement = element;
+ var elementType = methodElement.type;
if (elementType.kind != ResolutionTypeKind.FUNCTION) {
return safeType(inferrer);
} else {
return inferrer
- .typeOfNativeBehavior(
- inferrer.backend.nativeData.getNativeMethodBehavior(element))
+ .typeOfNativeBehavior(inferrer.backend.nativeData
+ .getNativeMethodBehavior(methodElement))
.type;
}
}
« no previous file with comments | « pkg/compiler/lib/src/elements/entities.dart ('k') | pkg/compiler/lib/src/js_backend/backend_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698