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

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: Add asRaw from other CL 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 39e6d250bb2415aa771da5c06ff84fa0bc942b3b..8e3c3605bee4f116714f850be83da99fc7997edf 100644
--- a/dart/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -132,15 +132,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);
}
« no previous file with comments | « dart/lib/compiler/implementation/resolution/members.dart ('k') | dart/lib/compiler/implementation/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698