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

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

Issue 11027023: Parse/unparse library combinators. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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/scanner_task.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 83993715add42fc862dd9989e195d8e8ccf44f8c..b2514370e8904ffc6a3a2b5e5da39dfb8c156939 100644
--- a/dart/lib/compiler/implementation/scanner/listener.dart
+++ b/dart/lib/compiler/implementation/scanner/listener.dart
@@ -666,18 +666,17 @@ class ElementListener extends Listener {
}
}
- void endHide(Token hideKeyword) {
- recoverableError('hide is not implemented', token: hideKeyword);
- // TODO(ahe): Do not ignore.
- }
+ void endHide(Token hideKeyword) => pushCombinator(hideKeyword);
- void endShow(Token showKeyword) {
- recoverableError('show is not implemented', token: showKeyword);
- // TODO(ahe): Do not ignore.
+ void endShow(Token showKeyword) => pushCombinator(showKeyword);
+
+ void pushCombinator(Token keywordToken) {
+ NodeList identifiers = popNode();
+ pushNode(new Combinator(identifiers, keywordToken));
}
void endIdentifierList(int count) {
- pushNode(makeNodeList(count, null, null, " "));
+ pushNode(makeNodeList(count, null, null, ","));
}
void endPart(Token partKeyword, Token semicolon) {
« no previous file with comments | « no previous file | dart/lib/compiler/implementation/scanner/scanner_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698