Index: lib/compiler/implementation/ssa/codegen.dart |
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart |
index d009c93cfe92c6b2cb18ee8a4436c652d6f2a8ac..2255f506d57f73d8a0a5a541744128a21cb25f37 100644 |
--- a/lib/compiler/implementation/ssa/codegen.dart |
+++ b/lib/compiler/implementation/ssa/codegen.dart |
@@ -35,7 +35,7 @@ class SsaCodeGeneratorTask extends CompilerTask { |
String code = 'function($parameters) {\n$body$extraSpace}'; |
List<SourceMappingEntry> sourceMappings = new List<SourceMappingEntry>(); |
- SourceFile sourceFile = element.getCompilationUnit().script.file; |
+ SourceFile sourceFile = element.getScript().file; |
FunctionExpression expression = element.cachedNode; |
sourceMappings.add(new SourceMappingEntry( |
sourceFile, expression.getBeginToken().charOffset, 0)); |