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

Unified Diff: pkg/compiler/lib/src/types/union_type_mask.dart

Issue 2273393003: Remove mask parameter from TypeMask.locateSingleElement (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/types/union_type_mask.dart
diff --git a/pkg/compiler/lib/src/types/union_type_mask.dart b/pkg/compiler/lib/src/types/union_type_mask.dart
index 0f96e10c4f1814aed5874c441152032fd06010ae..32e4e2a457c1db634eb575a8e68a70f937219ab7 100644
--- a/pkg/compiler/lib/src/types/union_type_mask.dart
+++ b/pkg/compiler/lib/src/types/union_type_mask.dart
@@ -331,11 +331,10 @@ class UnionTypeMask implements TypeMask {
return disjointMasks.any((e) => e.canHit(element, selector, classWorld));
}
- Element locateSingleElement(
- Selector selector, TypeMask mask, Compiler compiler) {
+ Element locateSingleElement(Selector selector, Compiler compiler) {
Element candidate;
for (FlatTypeMask mask in disjointMasks) {
- Element current = mask.locateSingleElement(selector, mask, compiler);
sra1 2016/08/26 00:45:27 Was the argument supposed to be the parameter or t
+ Element current = mask.locateSingleElement(selector, compiler);
if (current == null) {
return null;
} else if (candidate == null) {
« no previous file with comments | « pkg/compiler/lib/src/types/type_mask.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698