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

Unified Diff: pkg/analyzer/lib/dart/element/type.dart

Issue 1648063002: Implement the spec's notion of LUB for function types. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix passing test. Created 4 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/dart/element/type.dart
diff --git a/pkg/analyzer/lib/dart/element/type.dart b/pkg/analyzer/lib/dart/element/type.dart
index 5b92819fd23e6cbc89f8097b2efe35016677e537..9f079a951a6b0e1071a54e4b808c5f5a921b0022 100644
--- a/pkg/analyzer/lib/dart/element/type.dart
+++ b/pkg/analyzer/lib/dart/element/type.dart
@@ -173,6 +173,12 @@ abstract class FunctionType implements ParameterizedType {
List<DartType> get normalParameterTypes;
/**
+ * The names of the required positional parameters of this type of function,
+ * in the order that the parameters appear.
+ */
+ List<String> get normalParameterNames;
+
+ /**
* Return a map from the names of optional (positional) parameters to the
* types of the optional parameters of this type of function. The entries in
* the map will be iterated in the same order as the order in which the
@@ -182,6 +188,12 @@ abstract class FunctionType implements ParameterizedType {
List<DartType> get optionalParameterTypes;
/**
+ * The names of the optional positional parameters of this type of function,
+ * in the order that the parameters appear.
+ */
+ List<String> get optionalParameterNames;
+
+ /**
* Return a list containing the parameters elements of this type of function.
* The parameter types are in the same order as they appear in the declaration
* of the function.
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698