Index: runtime/vm/parser.cc |
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc |
index b128bf66ce5efc9d8eaf7ec0f741956929436b58..5499fe81a62b2e9564f3586baa2d2173b93aee3f 100644 |
--- a/runtime/vm/parser.cc |
+++ b/runtime/vm/parser.cc |
@@ -2523,6 +2523,7 @@ SequenceNode* Parser::ParseConstructor(const Function& func, |
((LookaheadToken(2) == Token::kLPAREN) || |
((LookaheadToken(2) == Token::kPERIOD) && |
(LookaheadToken(4) == Token::kLPAREN)))); |
+ func.set_is_redirecting(is_redirecting_constructor); |
GrowableArray<Field*> initialized_fields; |
LocalVariable* receiver = (*params.parameters)[0].var; |
@@ -3294,6 +3295,7 @@ void Parser::ParseMethodOrConstructor(ClassDesc* members, MemberDesc* method) { |
// If this method is a redirecting factory, set the redirection information. |
if (!redirection_type.IsNull()) { |
ASSERT(func.IsFactory()); |
+ func.set_is_redirecting(true); |
func.SetRedirectionType(redirection_type); |
if (!redirection_identifier.IsNull()) { |
func.SetRedirectionIdentifier(redirection_identifier); |