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

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

Issue 2747173002: Handle 'part of' declarations with URI correctly in Fasta. (Closed)
Patch Set: Address comments. Created 3 years, 9 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 3e74225ed889dbdf8244d9ef002a03666bfd1752..fc88cb4d5d6ed7aa014a91df920d45f4db511dac 100644
--- a/pkg/front_end/lib/src/fasta/parser/listener.dart
+++ b/pkg/front_end/lib/src/fasta/parser/listener.dart
@@ -551,7 +551,10 @@ class Listener {
/// Handle the end of a "part of" directive. Substructures:
/// - Metadata
/// - Library name (a qualified identifier)
- void endPartOf(Token partKeyword, Token semicolon) {
+ ///
+ /// If [hasName] is true, this part refers to its library by name, otherwise,
+ /// by URI.
+ void endPartOf(Token partKeyword, Token semicolon, bool hasName) {
logEvent("PartOf");
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/ast_builder.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