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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart

Issue 2804613003: Make lines and columns one-based in SourceLocation. (Closed)
Patch Set: Created 3 years, 8 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
Index: tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
index 244b6c9bd3ff46c4661727f90ed091fb71bb85e8..a0849efe778bba003cddb99260645ca610f339b2 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart
@@ -503,8 +503,8 @@ class CodePointComputer extends TraceListener {
return sourceLocation.shortText;
}
return sourceFile.kernelSource
- .getTextLine(sourceLocation.line + 1)
- .substring(sourceLocation.column)
+ .getTextLine(sourceLocation.line)
+ .substring(sourceLocation.column - 1)
.trim();
}
« no previous file with comments | « pkg/compiler/lib/src/io/start_end_information.dart ('k') | tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698