| Index: pkg/compiler/lib/src/elements/elements.dart
|
| diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
|
| index c676422cd933972d052f4924987292d88721e8b9..22f6cb09e5ce165bd55e242a73cdeab3cbad0001 100644
|
| --- a/pkg/compiler/lib/src/elements/elements.dart
|
| +++ b/pkg/compiler/lib/src/elements/elements.dart
|
| @@ -349,6 +349,8 @@ abstract class Element implements Entity {
|
| Element get enclosingClassOrCompilationUnit;
|
| Element get outermostEnclosingMemberOrTopLevel;
|
|
|
| + // TODO(johnniwinther): Replace uses of this with [enclosingClass] when
|
| + // [ClosureClassElement] has been removed.
|
| /// The enclosing class that defines the type environment for this element.
|
| ClassElement get contextClass;
|
|
|
| @@ -1053,6 +1055,12 @@ abstract class ParameterElement extends Element
|
|
|
| /// The function on which this parameter is declared.
|
| FunctionElement get functionDeclaration;
|
| +
|
| + /// `true` if this parameter is named.
|
| + bool get isNamed;
|
| +
|
| + /// `true` if this parameter is optional.
|
| + bool get isOptional;
|
| }
|
|
|
| /// A formal parameter on a function or constructor that introduces a local
|
| @@ -1133,6 +1141,9 @@ abstract class FunctionElement extends Element
|
|
|
| bool get hasFunctionSignature;
|
|
|
| + /// The parameters of this functions.
|
| + List<ParameterElement> get parameters;
|
| +
|
| /// The type of this function.
|
| FunctionType get type;
|
|
|
|
|