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

Unified Diff: pkg/front_end/lib/src/fasta/parser/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/parser/listener.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/listener.dart b/pkg/front_end/lib/src/fasta/parser/listener.dart
index cf593707ba667256f50549309facba3f41fc13df..ed125679f62da83f9674fea6f676755c2725356f 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -95,6 +95,7 @@ class Listener {
/// - type variables
/// - supertype (may be a mixin application)
/// - implemented types
+ /// - native clause
/// - class body
void endClassDeclaration(
int interfacesCount,
@@ -102,6 +103,7 @@ class Listener {
Token classKeyword,
Token extendsKeyword,
Token implementsKeyword,
+ Token nativeToken,
Token endToken) {
logEvent("ClassDeclaration");
}
@@ -962,6 +964,10 @@ class Listener {
logEvent("Modifiers");
}
+ void handleNativeClause(Token nativeToken, bool hasName) {
+ logEvent("NativeClause");
+ }
+
void handleNamedArgument(Token colon) {
logEvent("NamedArgument");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/fasta_codes_generated.dart ('k') | pkg/front_end/lib/src/fasta/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698