Index: pkg/compiler/lib/src/ssa/builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart |
index f866a0ff989f46e37a7c7f899aa2f7f93147f9cc..e00d7b785e2ff6735f9618bad257a16090eb4e6f 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -2191,8 +2191,10 @@ class SsaBuilder extends ast.Visitor |
constructorArguments, |
instantiatedTypes); |
if (function != null) { |
+ // TODO(johnniwinther): Provide source information for creation |
+ // through synthetic constructors. |
newObject.sourceInformation = |
- sourceInformationBuilder.buildGeneric(function); |
+ sourceInformationBuilder.buildCreate(function); |
} |
add(newObject); |
} else { |
@@ -3147,7 +3149,7 @@ class SsaBuilder extends ast.Visitor |
TypeMask type = |
new TypeMask.nonNullExact(compiler.functionClass, compiler.world); |
push(new HForeignNew(closureClassElement, type, capturedVariables) |
- ..sourceInformation = sourceInformationBuilder.buildGeneric(node)); |
+ ..sourceInformation = sourceInformationBuilder.buildCreate(node)); |
Element methodElement = nestedClosureData.closureElement; |
registry.registerInstantiatedClosure(methodElement); |