Index: lib/src/codegen/js_codegen.dart |
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
index cadeb9090c0f1e429e6bb906ea58913be5bbd7f2..6f8671838910fbf84e381859f98687385bfc71a5 100644 |
--- a/lib/src/codegen/js_codegen.dart |
+++ b/lib/src/codegen/js_codegen.dart |
@@ -1940,13 +1940,7 @@ class SourceMapPrintingContext extends JS.JavaScriptPrintingContext { |
} |
} |
- SourceLocation _location(int offset) { |
- var lineInfo = unit.lineInfo.getLocation(offset); |
- return new SourceLocation(offset, |
- sourceUrl: uri, |
- line: lineInfo.lineNumber - 1, |
- column: lineInfo.columnNumber - 1); |
- } |
+ SourceLocation _location(int offset) => locationForOffset(unit, uri, offset); |
Uri _makeRelativeUri(Uri src) { |
return new Uri(path: path.relative(src.path, from: outputDir)); |