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

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

Issue 10831332: Support new getter syntax. (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 54d68f9e7e892626ee5cadaa9b3a0b5e34edfadb..ad888baf8ea3c02db4b460170cb371c143059fc0 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -76,6 +76,9 @@ class Listener {
void endFormalParameter(Token token, Token thisKeyword) {
}
+ void handleNoFormalParameters(Token token) {
+ }
+
void beginFormalParameters(Token token) {
}
@@ -990,6 +993,10 @@ class NodeListener extends ElementListener {
pushNode(makeNodeList(count, beginToken, endToken, ","));
}
+ void handleNoFormalParameters(Token token) {
+ pushNode(null);
+ }
+
void endArguments(int count, Token beginToken, Token endToken) {
pushNode(makeNodeList(count, beginToken, endToken, ","));
}

Powered by Google App Engine
This is Rietveld 408576698