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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 1293953006: Refactor qualified send sets. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index ed40c2908ecb768e012f2130ea376af3478c5faf..ade7fa3a637dc9d4a5fb2b4cece4db5e7a8507ce 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -521,7 +521,7 @@ class Elements {
if (element == null) return !isClosureSend(send, element);
return isInstanceMethod(element) ||
isInstanceField(element) ||
- send.isConditional;
+ (send.isConditional && !element.isStatic);
Siggi Cherem (dart-lang) 2015/08/24 21:25:17 I think it should be fine to delete this whole lin
Johnni Winther 2015/08/25 07:25:58 This makes C?.foo _not_ an instance-send.
Siggi Cherem (dart-lang) 2015/08/25 15:48:06 I'm probably missing something - isInstanceMethod
Johnni Winther 2015/08/26 07:18:35 Ahh. I didn't go into the cases of isInstanceMetho
}
static bool isClosureSend(Send send, Element element) {
@@ -660,12 +660,6 @@ class Elements {
return null;
}
- static String mapToUserOperator(String op) {
- String userOperator = mapToUserOperatorOrNull(op);
- if (userOperator == null) throw 'Unhandled operator: $op';
- else return userOperator;
- }
-
static bool isNumberOrStringSupertype(Element element, Compiler compiler) {
LibraryElement coreLibrary = compiler.coreLibrary;
return (element == coreLibrary.find('Comparable'));
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/members.dart » ('j') | pkg/compiler/lib/src/resolution/members.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698