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 4c6110f45336cbdda68492f7a983551a6cbca205..7790028d5caeefd74d6fbbd877368ae4794de25c 100644 |
--- a/pkg/compiler/lib/src/resolution/send_resolver.dart |
+++ b/pkg/compiler/lib/src/resolution/send_resolver.dart |
@@ -748,16 +748,15 @@ abstract class DeclarationResolverMixin { |
return new RequiredParameterStructure( |
definitions, node, element, index); |
} else { |
- ConstantExpression defaultValue; |
- if (element.initializer != null) { |
- defaultValue = elements.getConstant(element.initializer); |
- } |
+ // TODO(johnniwinther): Should we differentiate between implicit (null) |
+ // and explicit values? What about optional parameters on redirecting |
+ // factories? |
if (isNamed) { |
return new NamedParameterStructure( |
- definitions, node, element, defaultValue); |
+ definitions, node, element, element.constant); |
} else { |
return new OptionalParameterStructure( |
- definitions, node, element, defaultValue, index); |
+ definitions, node, element, element.constant, index); |
} |
} |
} |