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

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

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/codegen/html_codegen.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_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));
« no previous file with comments | « lib/src/codegen/html_codegen.dart ('k') | lib/src/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698