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

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

Issue 10832129: Get back recording 'implements' and 'extends' keyword on NodeList (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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: lib/compiler/implementation/scanner/listener.dart
diff --git a/lib/compiler/implementation/scanner/listener.dart b/lib/compiler/implementation/scanner/listener.dart
index 69edb8da0e3504e9ffbfc0cd0bbfafd31eb2341f..576512f901c74a2f890dff423f9236a1fbbc345a 100644
--- a/lib/compiler/implementation/scanner/listener.dart
+++ b/lib/compiler/implementation/scanner/listener.dart
@@ -899,7 +899,7 @@ class NodeListener extends ElementListener {
Token endToken) {
NodeList body = popNode();
NodeList interfaces =
- makeNodeList(interfacesCount, null, null, ",");
+ makeNodeList(interfacesCount, implementsKeyword, null, ",");
TypeAnnotation supertype = popNode();
NodeList typeParameters = popNode();
Identifier name = popNode();
@@ -920,7 +920,8 @@ class NodeListener extends ElementListener {
Token extendsKeyword, Token endToken) {
NodeList body = popNode();
TypeAnnotation defaultClause = popNode();
- NodeList supertypes = makeNodeList(supertypeCount, null, null, ',');
+ NodeList supertypes = makeNodeList(supertypeCount, extendsKeyword,
+ null, ',');
NodeList typeParameters = popNode();
Identifier name = popNode();
pushNode(new ClassNode(name, typeParameters, null, supertypes,
« no previous file with comments | « lib/compiler/implementation/dart_backend/emitter.dart ('k') | lib/compiler/implementation/tree/unparser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698