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

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

Issue 2996163002: support class native clause (Closed)
Patch Set: update DietListener and test Created 3 years, 4 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/directive_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/directive_listener.dart b/pkg/front_end/lib/src/fasta/source/directive_listener.dart
index dcb47292ee24f1075a2240fafc5912844932ff2a..3fa4baf7fb4c60dcef8fadda38c516c50d56b537 100644
--- a/pkg/front_end/lib/src/fasta/source/directive_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/directive_listener.dart
@@ -110,12 +110,12 @@ class DirectiveListener extends Listener {
/// Defines how native clauses are handled. By default, they are not handled
/// and an error is thrown;
- Token handleNativeClause(Token token) => null;
+ Token handleNativeClauseError(Token token) => null;
@override
Token handleUnrecoverableError(Token token, Message message) {
if (message.code == codeExpectedBlockToSkip) {
- Token recover = handleNativeClause(token);
+ Token recover = handleNativeClauseError(token);
if (recover != null) return recover;
}
return super.handleUnrecoverableError(token, message);
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/diet_listener.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698