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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10911211: Runtime support for the new parameter specification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/elements/elements.dart
===================================================================
--- lib/compiler/implementation/elements/elements.dart (revision 12238)
+++ lib/compiler/implementation/elements/elements.dart (working copy)
@@ -847,15 +847,17 @@
// TODO(johnniwinther): [FunctionSignature] should be merged with
// [FunctionType].
class FunctionSignature {
- Link<Element> requiredParameters;
- Link<Element> optionalParameters;
- DartType returnType;
- int requiredParameterCount;
- int optionalParameterCount;
+ final Link<Element> requiredParameters;
+ final Link<Element> optionalParameters;
+ final DartType returnType;
+ final int requiredParameterCount;
+ final int optionalParameterCount;
+ final bool optionalParametersAreNamed;
FunctionSignature(this.requiredParameters,
this.optionalParameters,
this.requiredParameterCount,
this.optionalParameterCount,
+ this.optionalParametersAreNamed,
this.returnType);
void forEachRequiredParameter(void function(Element parameter)) {

Powered by Google App Engine
This is Rietveld 408576698