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

Unified Diff: frog/leg/namer.dart

Issue 9146036: Address review comments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « no previous file | frog/leg/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/namer.dart
===================================================================
--- frog/leg/namer.dart (revision 3549)
+++ frog/leg/namer.dart (working copy)
@@ -61,7 +61,8 @@
assert(!element.isInstanceMember());
if (element.kind == ElementKind.GENERATIVE_CONSTRUCTOR) {
SourceString name = getConstructorName(element);
- return instanceMethodName(name, element.parameterCount(compiler));
+ FunctionElement functionElement = element;
+ return instanceMethodName(name, functionElement.parameterCount(compiler));
} else {
// TODO(floitsch): deal with named constructors.
String name = '${element.name}';
« no previous file with comments | « no previous file | frog/leg/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698