Index: pkg/compiler/lib/src/js_backend/codegen/task.dart |
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
index 061e44af309251da3b1f2aee88507d99a19d3c82..cf21b0b3b925bcead12f35d4d97832f02606962d 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
@@ -351,6 +351,6 @@ class CpsFunctionCompiler implements FunctionCompiler { |
js.Node attachPosition(js.Node node, AstElement element) { |
return node.withSourceInformation(sourceInformationFactory |
.createBuilderForContext(element) |
- .buildDeclaration(element)); |
+ .buildDeclaration(backend.frontend.getResolvedAst(element))); |
} |
} |