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

Unified Diff: frog/leg/namer.dart

Issue 9027002: Support factory methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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: frog/leg/namer.dart
===================================================================
--- frog/leg/namer.dart (revision 2746)
+++ frog/leg/namer.dart (working copy)
@@ -39,7 +39,7 @@
* body element is not accessible.
*/
String constructorBodyName(Element element) {
- assert(element.kind == ElementKind.CONSTRUCTOR);
+ assert(element.kind == ElementKind.GENERATIVE_CONSTRUCTOR);
// TODO(floitsch): the constructor-body name must not conflict with other
// instance fields.
// TOD(floitsch): deal with named constructors.
@@ -56,11 +56,11 @@
*/
String getName(Element element) {
switch (element.kind) {
- case ElementKind.CONSTRUCTOR_BODY:
+ case ElementKind.GENERATIVE_CONSTRUCTOR_BODY:
ConstructorBodyElement bodyElement = element;
return constructorBodyName(bodyElement.constructor);
- case ElementKind.CONSTRUCTOR:
+ case ElementKind.GENERATIVE_CONSTRUCTOR:
default:
if (element.isInstanceMember()) {
return instanceName(element.name);

Powered by Google App Engine
This is Rietveld 408576698