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

Unified Diff: pkg/compiler/lib/src/types/flat_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
Index: pkg/compiler/lib/src/types/flat_type_mask.dart
diff --git a/pkg/compiler/lib/src/types/flat_type_mask.dart b/pkg/compiler/lib/src/types/flat_type_mask.dart
index f38c6f6c5c5519469ca86d0cdf84d7ab93e3f9a8..90389a73915ed49b31a37b4575f89d5a9d6a8d48 100644
--- a/pkg/compiler/lib/src/types/flat_type_mask.dart
+++ b/pkg/compiler/lib/src/types/flat_type_mask.dart
@@ -681,11 +681,10 @@ class FlatTypeMask implements TypeMask {
subclassesToCheck.any(needsNoSuchMethod);
}
- Element locateSingleElement(
- Selector selector, TypeMask mask, Compiler compiler) {
+ Element locateSingleElement(Selector selector, Compiler compiler) {
if (isEmptyOrNull) return null;
Iterable<Element> targets =
- compiler.world.allFunctions.filter(selector, mask);
+ compiler.world.allFunctions.filter(selector, this);
if (targets.length != 1) return null;
Element result = targets.first;
ClassElement enclosing = result.enclosingClass;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/types/forwarding_type_mask.dart » ('j') | pkg/compiler/lib/src/types/union_type_mask.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698