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

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

Issue 10915030: Parse argument definition test expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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: 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 0937f311b6473a0be29e42fcb270b9cbd7f2e795..b148dcfcf643995fd38926b69805e95783ee3a83 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -9,6 +9,12 @@ const bool VERBOSE = false;
* on parser errors.
*/
class Listener {
+ void beginArgumentDefinitionTest(Token token) {
+ }
+
+ void endArgumentDefinitionTest(Token beginToken, Token endToken) {
+ }
+
void beginArguments(Token token) {
}
@@ -932,6 +938,10 @@ class NodeListener extends ElementListener {
NodeListener(DiagnosticListener listener, CompilationUnitElement element)
: super(listener, element, null);
+ void endArgumentDefinitionTest(Token beginToken, Token endToken) {
+ pushNode(new Send.prefix(popNode(), new Operator(beginToken)));
+ }
+
void endClassDeclaration(int interfacesCount, Token beginToken,
Token extendsKeyword, Token implementsKeyword,
Token endToken) {
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | dart/lib/compiler/implementation/scanner/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698