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

Unified Diff: tests/compiler/dart2js/inference/inference_test_helper.dart

Issue 2777093010: Use entities in NoSuchMethodRegistry (Closed)
Patch Set: Move as cast. 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: tests/compiler/dart2js/inference/inference_test_helper.dart
diff --git a/tests/compiler/dart2js/inference/inference_test_helper.dart b/tests/compiler/dart2js/inference/inference_test_helper.dart
index 4b6636e7249c2c2c2ddb0fb38746d83748ba5d91..0e766f681854e5269bb765a9322502bde758cf67 100644
--- a/tests/compiler/dart2js/inference/inference_test_helper.dart
+++ b/tests/compiler/dart2js/inference/inference_test_helper.dart
@@ -107,7 +107,7 @@ class TypeMaskChecker extends Visitor with AstEnumeratorMixin {
TypeMaskChecker(
this.reporter, this.expectedMap, this.resolvedAst, this.results)
- : result = results.resultOf(resolvedAst.element);
+ : result = results.resultOfMember(resolvedAst.element as MemberElement);
TreeElements get elements => resolvedAst.elements;
@@ -121,7 +121,8 @@ class TypeMaskChecker extends Visitor with AstEnumeratorMixin {
void checkElement(AstElement element) {
ElementId id = computeElementId(element);
- GlobalTypeInferenceElementResult elementResult = results.resultOf(element);
+ GlobalTypeInferenceElementResult elementResult =
+ results.resultOfElement(element);
TypeMask value =
element.isFunction ? elementResult.returnType : elementResult.type;
String expected = annotationForId(id);
« no previous file with comments | « tests/compiler/dart2js/concrete_type_inference_test.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698