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

Unified Diff: dart/lib/compiler/implementation/scanner/listener.dart

Issue 10205015: Add some documentation to the parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 8 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
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/listener.dart
diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
index f80ef8ebac15b21d98f88e35480243dd63bbac22..cb986b4c08dd3bb63de7d14563f296751fc893ac 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -4,6 +4,10 @@
final bool VERBOSE = false;
+/**
+ * A parser event listener that does nothing except throw exceptions
+ * on parser errors.
+ */
class Listener {
void beginArguments(Token token) {
}
@@ -490,7 +494,10 @@ class ParserError {
}
/**
- * A listener for parser events.
+ * A parser event listener designed to work with [PartialParser]. It
+ * builds elements representing the top-level declarations found in
+ * the parsed compilation unit and records them in
+ * [compilationUnitElement].
*/
class ElementListener extends Listener {
final DiagnosticListener listener;
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698