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

Unified Diff: pkg/front_end/lib/src/fasta/parser/listener.dart

Issue 2691423007: Add AstBuilder support for import and export directives. (Closed)
Patch Set: Move comment 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
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 ee9ea456b2aef2b94df4b2d6b589e5dff31dd0cf..738620faadd27cb6c3a4669e4a1188884f816640 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -116,6 +116,11 @@ class Listener {
void beginExport(Token token) {}
+ /// Handle the end of an export directive. Substructures:
+ /// - metadata
+ /// - uri
+ /// - conditional uris
+ /// - combinators
void endExport(Token exportKeyword, Token semicolon) {
logEvent("Export");
}
@@ -236,6 +241,8 @@ class Listener {
void beginHide(Token hideKeyword) {}
+ /// Handle the end of a "hide" combinator. Substructures:
+ /// - hidden names (IdentifierList)
void endHide(Token hideKeyword) {
logEvent("Hide");
}
@@ -272,6 +279,12 @@ class Listener {
void beginImport(Token importKeyword) {}
+ /// Handle the end of an import directive. Substructures:
+ /// - metadata
+ /// - uri
+ /// - conditional uris
+ /// - prefix identifier (only if asKeyword != null)
+ /// - combinators
void endImport(Token importKeyword, Token DeferredKeyword, Token asKeyword,
Token semicolon) {
logEvent("Import");
@@ -457,6 +470,8 @@ class Listener {
void beginShow(Token showKeyword) {}
+ /// Handle the end of a "show" combinator. Substructures:
+ /// - shown names (IdentifierList)
void endShow(Token showKeyword) {
logEvent("Show");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/ast_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/stack_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698