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

Unified Diff: tests/compiler/dart2js/trust_type_annotations_test.dart

Issue 2955353002: Split inference type-info accessors into members, parameters and local functions (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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/trust_type_annotations_test.dart
diff --git a/tests/compiler/dart2js/trust_type_annotations_test.dart b/tests/compiler/dart2js/trust_type_annotations_test.dart
index f7a390aaf76bbf44234432dec62c70ff3c8f955e..55514ab32516b98d5a8c85ed705cdd6e2e30f0be 100644
--- a/tests/compiler/dart2js/trust_type_annotations_test.dart
+++ b/tests/compiler/dart2js/trust_type_annotations_test.dart
@@ -57,14 +57,14 @@ void main() {
checkReturn(String name, TypeMask type) {
var element = classA.lookupMember(name);
- var mask = typesInferrer.getReturnTypeOfElement(element);
+ var mask = typesInferrer.getReturnTypeOfMember(element);
Expect.isTrue(type.containsMask(mask, closedWorld));
}
checkType(String name, type) {
var element = classA.lookupMember(name);
Expect.isTrue(type.containsMask(
- typesInferrer.getTypeOfElement(element), closedWorld));
+ typesInferrer.getTypeOfMember(element), closedWorld));
}
var intMask = new TypeMask.subtype(
« no previous file with comments | « tests/compiler/dart2js/simple_inferrer_unregister_call_test.dart ('k') | tests/compiler/dart2js/type_inference6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698