Chromium Code Reviews| 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')); |