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

Unified Diff: sdk/lib/_internal/compiler/implementation/universe/universe.dart

Issue 1259553002: Emit program and dependency information as relations in a Prolog database. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 5 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: sdk/lib/_internal/compiler/implementation/universe/universe.dart
diff --git a/sdk/lib/_internal/compiler/implementation/universe/universe.dart b/sdk/lib/_internal/compiler/implementation/universe/universe.dart
index 89e6d09075effee7a7291b1c69265679734c22ee..dd60238e34c2d53cbc3ff0b1745e330fb8d04d10 100644
--- a/sdk/lib/_internal/compiler/implementation/universe/universe.dart
+++ b/sdk/lib/_internal/compiler/implementation/universe/universe.dart
@@ -82,6 +82,12 @@ class Universe {
return false;
}
+ Iterable<Selector> getMatchingSelectors(Element member, Compiler compiler) {
+ return invokedNames[member.name].where((Selector selector) {
+ return selector.appliesUnnamed(member, compiler);
+ });
+ }
+
bool hasInvocation(Element member, Compiler compiler) {
return hasMatchingSelector(invokedNames[member.name], member, compiler);
}

Powered by Google App Engine
This is Rietveld 408576698