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

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

Issue 9270016: Issue 932. Checks for various named arguments cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks for comments, changes in tests. 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: 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 165f2ff0503bb584b8ec4a63792bb52d6ea4fc01..3ebac465475146babcb2e85d6ff95a5d98ea2371 100644
--- a/compiler/java/com/google/dart/compiler/type/FunctionType.java
+++ b/compiler/java/com/google/dart/compiler/type/FunctionType.java
@@ -20,7 +20,10 @@ import java.util.Map;
public interface FunctionType extends Type {
Type getReturnType();
- List<? extends Type> getParameterTypes();
+ /**
+ * @return "normal" parameter types, i.e. required, does not include "named".
+ */
+ List<Type> getParameterTypes();
/**
* Return the class element corresponding to the interface Function.
@@ -32,5 +35,8 @@ public interface FunctionType extends Type {
boolean hasRest();
+ /**
+ * @return "named" parameter types.
+ */
Map<String, Type> getNamedParameterTypes();
}

Powered by Google App Engine
This is Rietveld 408576698