Index: pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart |
index d22353601ffdf7de2c8324819140aaa7e8d7b48f..c521a54edc51f08739dea5030d5f839cbbb1f4d3 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart |
@@ -186,6 +186,10 @@ class KernelAstFactory implements AstFactory<VariableDeclaration> { |
@override |
StaticInvocation staticInvocation(Procedure target, Arguments arguments, |
{bool isConst: false}) { |
+ if (target.kind == ProcedureKind.Factory) { |
+ return new KernelFactoryConstructorInvocation(target, arguments, |
+ isConst: isConst); |
+ } |
return new KernelStaticInvocation(target, arguments, isConst: isConst); |
} |