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

Unified Diff: pkg/fasta/lib/src/source/stack_listener.dart

Issue 2649923002: Update listener error handling. (Closed)
Patch Set: Created 3 years, 11 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/fasta/lib/src/source/diet_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/lib/src/source/stack_listener.dart
diff --git a/pkg/fasta/lib/src/source/stack_listener.dart b/pkg/fasta/lib/src/source/stack_listener.dart
index 310d7e6f0fb316a51078c3ab47eb094edb15460c..dce8ae19c89ab5b2cc5250755871becedc09a3fc 100644
--- a/pkg/fasta/lib/src/source/stack_listener.dart
+++ b/pkg/fasta/lib/src/source/stack_listener.dart
@@ -130,7 +130,7 @@ abstract class StackListener extends Listener {
}
if (recoverableErrors.isNotEmpty) {
// TODO(ahe): Handle recoverable errors better.
- inputError(uri, recoverableErrors.first.token.charOffset,
+ inputError(uri, recoverableErrors.first.beginOffset,
recoverableErrors);
}
}
« no previous file with comments | « pkg/fasta/lib/src/source/diet_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698