Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Unified Diff: lib/src/codegen/js_printer.dart

Issue 1230903002: fixes #6, refactor to use AnalysisError/Listener throughout dev_compiler (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/checker/checker.dart ('k') | lib/src/dependency_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_printer.dart
diff --git a/lib/src/codegen/js_printer.dart b/lib/src/codegen/js_printer.dart
index 3253771dec5ec7256401b36bc74aa29db425817e..2fd19f05c1204a4a50f0bb31adbc79daffee0d77 100644
--- a/lib/src/codegen/js_printer.dart
+++ b/lib/src/codegen/js_printer.dart
@@ -84,7 +84,8 @@ class SourceMapPrintingContext extends JS.JavaScriptPrintingContext {
}
}
- SourceLocation _location(int offset) => locationForOffset(unit, uri, offset);
+ SourceLocation _location(int offset) =>
+ locationForOffset(unit.lineInfo, uri, offset);
Uri _makeRelativeUri(Uri src) {
return new Uri(path: path.relative(src.path, from: outputDir));
« no previous file with comments | « lib/src/checker/checker.dart ('k') | lib/src/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698