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

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

Issue 2965393002: Use FastaMessage instead of String. Part 1. (Closed)
Patch Set: Add type variable to Code. Created 3 years, 5 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: pkg/front_end/lib/src/fasta/source/diet_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/diet_listener.dart b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
index 27347e4836348edde5ea5dcf31d294dc965fb015..c8c41ec22ac6941021c7b0b3b1ebfdc5eaa9d27f 100644
--- a/pkg/front_end/lib/src/fasta/source/diet_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/diet_listener.dart
@@ -19,7 +19,7 @@ import 'package:kernel/class_hierarchy.dart' show ClassHierarchy;
import 'package:kernel/core_types.dart' show CoreTypes;
-import '../fasta_codes.dart' show FastaMessage, codeExpectedBlockToSkip;
+import '../fasta_codes.dart' show Message, codeExpectedBlockToSkip;
import '../parser/parser.dart' show MemberKind, Parser, optional;
@@ -518,7 +518,7 @@ class DietListener extends StackListener {
}
@override
- Token handleUnrecoverableError(Token token, FastaMessage message) {
+ Token handleUnrecoverableError(Token token, Message message) {
if (enableNative && message.code == codeExpectedBlockToSkip) {
Token recover = library.loader.target.skipNativeClause(token);
if (recover != null) return recover;
@@ -611,9 +611,9 @@ class DietListener extends StackListener {
}
@override
- void addCompileTimeErrorFromMessage(FastaMessage message) {
- library.deprecated_addCompileTimeError(message.charOffset, message.message,
- fileUri: message.uri,
+ void addCompileTimeError(Message message, int charOffset) {
+ library.deprecated_addCompileTimeError(charOffset, message.message,
+ fileUri: uri,
// We assume this error has already been reported by OutlineBuilder.
silent: true);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/recover.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698