Chromium Code Reviews| Index: tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
| diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
| index 423c054085fb7047d07ba6da5fd88379c11ba42a..fae4da9bc20e2d3b31db38fe4a4a4aaa0bffa9f0 100644 |
| --- a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
| +++ b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
| @@ -515,7 +515,7 @@ String computeDartHtmlPart(String name, SourceFileManager sourceFileManager, |
| line++) { |
| if (line >= 0) { |
| dartCodeBuffer.write(lineNumber(line, width: lineNoWidth)); |
| - dartCodeBuffer.write(sourceFile.getLineText(line)); |
| + dartCodeBuffer.write(sourceFile.kernelSource.getTextLine(line + 1)); |
|
asgerf
2017/04/03 15:19:14
Wouldn't it be better to keep the name getLineText
ahe
2017/04/03 15:34:55
I'm not sure how much of this I can change, and ho
asgerf
2017/04/04 08:33:59
It has nothing to do with the source map format.
ahe
2017/04/04 09:03:07
Sorry, I misunderstood your question. We discussed
|
| } |
| } |
| dartCodeBuffer.write(codeBuffer); |
| @@ -524,7 +524,7 @@ String computeDartHtmlPart(String name, SourceFileManager sourceFileManager, |
| line++) { |
| if (line < sourceFile.lines) { |
| dartCodeBuffer.write(lineNumber(line, width: lineNoWidth)); |
| - dartCodeBuffer.write(sourceFile.getLineText(line)); |
| + dartCodeBuffer.write(sourceFile.kernelSource.getTextLine(line + 1)); |
| } |
| } |
| dartCodeBuffer.write('</pre>\n'); |
| @@ -544,10 +544,10 @@ String computeDartHtmlPart(String name, SourceFileManager sourceFileManager, |
| } else { |
| for (int line = lastLineIndex + 1; line < lineIndex; line++) { |
| codeBuffer.write(lineNumber(line, width: lineNoWidth)); |
| - codeBuffer.write(sourceFile.getLineText(line)); |
| + codeBuffer.write(sourceFile.kernelSource.getTextLine(line + 1)); |
| } |
| } |
| - String line = sourceFile.getLineText(lineIndex); |
| + String line = sourceFile.kernelSource.getTextLine(lineIndex + 1); |
| locations.sort((a, b) => a.offset.compareTo(b.offset)); |
| for (int i = 0; i < locations.length; i++) { |
| SourceLocation sourceLocation = locations[i]; |