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

Unified Diff: pkg/compiler/lib/src/parser/element_listener.dart

Issue 1878253002: Adds support for remaining generic method syntax constructs. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Added comment at a tricky point Created 4 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 | pkg/compiler/lib/src/parser/listener.dart » ('j') | pkg/compiler/lib/src/parser/parser.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/parser/element_listener.dart
diff --git a/pkg/compiler/lib/src/parser/element_listener.dart b/pkg/compiler/lib/src/parser/element_listener.dart
index b089ae5202aba3eab0f8abd37221ab3f4d2abaf6..1a2b710ea07590c716ef1bf27b3c83121bbea8e2 100644
--- a/pkg/compiler/lib/src/parser/element_listener.dart
+++ b/pkg/compiler/lib/src/parser/element_listener.dart
@@ -368,8 +368,17 @@ class ElementListener extends Listener {
pushNode(null);
}
+ void handleNoExtendsNorSuper(Token token) {
+ pushNode(null);
+ }
+
+ void handleExtendsOrSuper(Token token) {
+ pushNode(null); // Supporting only syntax, we do not need to distinguish.
+ }
+
void endTypeVariable(Token token) {
TypeAnnotation bound = popNode();
+ popNode(); // `extends` or `super`
Identifier name = popNode();
pushNode(new TypeVariable(name, bound));
rejectBuiltInIdentifier(name);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/parser/listener.dart » ('j') | pkg/compiler/lib/src/parser/parser.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698