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

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

Issue 11227007: Unify parsing of constructor references. (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
Index: dart/lib/compiler/implementation/scanner/class_element_parser.dart
diff --git a/dart/lib/compiler/implementation/scanner/class_element_parser.dart b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
index 0e536d92af5e715d2643f2996b8036edec642b2b..61b68b7cd1aa3c08be2392a5c9181a1f7aee335a 100644
--- a/dart/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -130,15 +130,14 @@ class MemberListener extends NodeListener {
addMember(memberElement);
}
- void endFactoryMethod(Token factoryKeyword, Token periodBeforeName,
- Token endToken) {
- super.endFactoryMethod(factoryKeyword, periodBeforeName, endToken);
+ void endFactoryMethod(Token beginToken, Token endToken) {
+ super.endFactoryMethod(beginToken, endToken);
FunctionExpression method = popNode();
pushNode(null);
SourceString name = getMethodNameHack(method.name);
ElementKind kind = ElementKind.FUNCTION;
Element memberElement =
- new PartialFunctionElement(name, factoryKeyword, null, endToken,
+ new PartialFunctionElement(name, beginToken, null, endToken,
kind, method.modifiers, enclosingElement);
addMember(memberElement);
}

Powered by Google App Engine
This is Rietveld 408576698