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

Unified Diff: frog/leg/namer.dart

Issue 9301038: Support named arguments for statically resolved calls. (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
Index: frog/leg/namer.dart
===================================================================
--- frog/leg/namer.dart (revision 3723)
+++ frog/leg/namer.dart (working copy)
@@ -101,11 +101,8 @@
return instanceMethodName(name, bodyElement.parameterCount(compiler));
} else if (element.kind == ElementKind.FUNCTION) {
FunctionElement functionElement = element;
- int parameterCount = functionElement.parameterCount(compiler);
- int optionalParameterCount =
- functionElement.optionalParameterCount(compiler);
return instanceMethodName(
- element.name, parameterCount + optionalParameterCount);
+ element.name, functionElement.parameterCount(compiler));
} else if (element.kind == ElementKind.GETTER) {
return getterName(element.name);
} else if (element.kind == ElementKind.SETTER) {
« no previous file with comments | « frog/leg/lib/core.dart ('k') | frog/leg/resolver.dart » ('j') | frog/leg/ssa/builder.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698