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

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

Issue 2705333002: Pass 'classKeyword' to endClassDeclaratio() and endNamedMixinApplication(). (Closed)
Patch Set: Created 3 years, 10 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: pkg/compiler/lib/src/parser/node_listener.dart
diff --git a/pkg/compiler/lib/src/parser/node_listener.dart b/pkg/compiler/lib/src/parser/node_listener.dart
index 8d9694ad9ac49749d6e16721f063c65c52fc2ca9..b5cbad61da0b334b0f4874726239afca58218d09 100644
--- a/pkg/compiler/lib/src/parser/node_listener.dart
+++ b/pkg/compiler/lib/src/parser/node_listener.dart
@@ -97,7 +97,8 @@ class NodeListener extends ElementListener {
@override
void endClassDeclaration(int interfacesCount, Token beginToken,
- Token extendsKeyword, Token implementsKeyword, Token endToken) {
+ Token classKeyword, Token extendsKeyword, Token implementsKeyword,
+ Token endToken) {
NodeList body = popNode();
NodeList interfaces =
makeNodeList(interfacesCount, implementsKeyword, null, ",");
@@ -136,15 +137,15 @@ class NodeListener extends ElementListener {
@override
void endNamedMixinApplication(
- Token classKeyword, Token equals, Token implementsKeyword,
- Token endToken) {
+ Token beginToken, Token classKeyword, Token equals,
+ Token implementsKeyword, Token endToken) {
NodeList interfaces = (implementsKeyword != null) ? popNode() : null;
Node mixinApplication = popNode();
NodeList typeParameters = popNode();
Identifier name = popNode();
Modifiers modifiers = popNode();
pushNode(new NamedMixinApplication(name, typeParameters, modifiers,
- mixinApplication, interfaces, classKeyword, endToken));
+ mixinApplication, interfaces, beginToken, endToken));
}
@override

Powered by Google App Engine
This is Rietveld 408576698