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

Unified Diff: compiler/java/com/google/dart/compiler/type/FunctionType.java

Issue 10828355: Issue 4289. Test that arguments are bound to positional, optional and named parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Prepare for making optional parameter not named Created 8 years, 4 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: compiler/java/com/google/dart/compiler/type/FunctionType.java
diff --git a/compiler/java/com/google/dart/compiler/type/FunctionType.java b/compiler/java/com/google/dart/compiler/type/FunctionType.java
index 75dd7a43b01a69863ea7e701ecde2f1134664ee8..b8d62a37312ce9e386448ddc503dc6cd57816723 100644
--- a/compiler/java/com/google/dart/compiler/type/FunctionType.java
+++ b/compiler/java/com/google/dart/compiler/type/FunctionType.java
@@ -36,6 +36,11 @@ public interface FunctionType extends Type {
boolean hasRest();
/**
+ * @return "optional" parameter types.
+ */
+ Map<String, Type> getOptionalParameterTypes();
+
+ /**
* @return "named" parameter types.
*/
Map<String, Type> getNamedParameterTypes();

Powered by Google App Engine
This is Rietveld 408576698