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

Unified Diff: pkg/compiler/lib/src/elements/entities.dart

Issue 2939033002: Towards compiling Hello World! (Closed)
Patch Set: Fix parameter ordering Created 3 years, 6 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: pkg/compiler/lib/src/elements/entities.dart
diff --git a/pkg/compiler/lib/src/elements/entities.dart b/pkg/compiler/lib/src/elements/entities.dart
index 062aef7fdeb75508712cd728e2e81cb137880875..5779cd8d5dd8f0c4491b723e2b20f9c7df967e6f 100644
--- a/pkg/compiler/lib/src/elements/entities.dart
+++ b/pkg/compiler/lib/src/elements/entities.dart
@@ -252,6 +252,9 @@ class ParameterStructure {
int get optionalParameters =>
positionalParameters - requiredParameters + namedParameters.length;
+ /// The total number of parameters (required or optional).
+ int get totalParameters => positionalParameters + namedParameters.length;
+
/// Returns the [CallStructure] corresponding to a call site passing all
/// parameters both required and optional.
CallStructure get callStructure {

Powered by Google App Engine
This is Rietveld 408576698