Chromium Code Reviews| Index: pkg/front_end/lib/src/fasta/source/source_loader.dart |
| diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart |
| index 5e508462945b3ac4b52d8aadfc046d5f5989957a..57769dcbda8cee37020ea27b818c5bb4a1328b0e 100644 |
| --- a/pkg/front_end/lib/src/fasta/source/source_loader.dart |
| +++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart |
| @@ -63,9 +63,7 @@ class SourceLoader<L> extends Loader<L> { |
| byteCount += bytes.length - 1; |
| ScannerResult result = scan(bytes); |
| Token token = result.tokens; |
| - if (!suppressLexicalErrors) { |
| - target.addLineStarts(library.fileUri, result.lineStarts); |
| - } |
| + target.addLineStarts(library.fileUri, result.lineStarts); |
|
ahe
2017/03/03 09:03:58
Are you sure this is necessary?
|
| while (token is ErrorToken) { |
| if (!suppressLexicalErrors) { |
| ErrorToken error = token; |