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

Unified Diff: pkg/compiler/lib/src/resolution/send_resolver.dart

Issue 1033213002: Fix type annotation for deferred constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Skip deferred for dart2dart Created 5 years, 9 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/resolution/send_resolver.dart
diff --git a/pkg/compiler/lib/src/resolution/send_resolver.dart b/pkg/compiler/lib/src/resolution/send_resolver.dart
index aa5a747db0f6ab531631e634b1954ea03d0d272b..1edc1af967ae478cb115f86b2c0e1667d12ded78 100644
--- a/pkg/compiler/lib/src/resolution/send_resolver.dart
+++ b/pkg/compiler/lib/src/resolution/send_resolver.dart
@@ -309,7 +309,8 @@ abstract class SendResolverMixin {
Element getter = isCompound ? elements[node.selector] : null;
if (elements.isTypeLiteral(node)) {
DartType dartType = elements.getTypeLiteralType(node);
- TypeConstantExpression constant = elements.getConstant(
+ // TODO(johnniwinther): Handle deferred constants.
karlklose 2015/03/27 10:05:05 Could you explain on what is the problem/missing f
Johnni Winther 2015/03/28 15:14:30 Done.
+ ConstantExpression constant = elements.getConstant(
isInvoke ? node.selector : node);
switch (dartType.kind) {
case TypeKind.INTERFACE:
« no previous file with comments | « pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart ('k') | pkg/compiler/lib/src/resolved_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698