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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 2717673002: Use printUnexpected and add location information. (Closed)
Patch Set: Created 3 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 | « pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d1d3da25def111eb2bd7b0cdbbeafc0e34921d35..42550ce6fa78286c87a839665e6e1b3e9ee316d6 100644
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart
@@ -32,8 +32,8 @@ import 'package:kernel/core_types.dart' show
CoreTypes;
import '../errors.dart' show
- InputError,
- inputError;
+ inputError,
+ printUnexpected;
import '../messages.dart' show
warning;
@@ -98,8 +98,7 @@ class SourceLoader<L> extends Loader<L> {
while (token is ErrorToken) {
if (!suppressLexicalErrors) {
ErrorToken error = token;
- print(new InputError(uri, token.charOffset, error.assertionMessage)
- .format());
+ printUnexpected(uri, token.charOffset, error.assertionMessage);
}
token = token.next;
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698