| Index: pkg/analyzer/lib/src/generated/element.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
|
| index 50b872b9f94fb253f2d9888c971aeb7039a230a6..8154c4713494c27ca622e435b678333d249899ef 100644
|
| --- a/pkg/analyzer/lib/src/generated/element.dart
|
| +++ b/pkg/analyzer/lib/src/generated/element.dart
|
| @@ -4624,6 +4624,9 @@ class FieldMember extends VariableMember implements FieldElement {
|
| PropertyAccessorElement get getter => PropertyAccessorMember.from(baseElement.getter, definingType);
|
|
|
| @override
|
| + DartType get propagatedType => substituteFor(baseElement.propagatedType);
|
| +
|
| + @override
|
| PropertyAccessorElement get setter => PropertyAccessorMember.from(baseElement.setter, definingType);
|
|
|
| @override
|
| @@ -8220,6 +8223,9 @@ abstract class Member implements Element {
|
| * @return the result of transforming the type
|
| */
|
| DartType substituteFor(DartType type) {
|
| + if (type == null) {
|
| + return null;
|
| + }
|
| List<DartType> argumentTypes = _definingType.typeArguments;
|
| List<DartType> parameterTypes = TypeParameterTypeImpl.getTypes(_definingType.typeParameters);
|
| return type.substitute2(argumentTypes, parameterTypes);
|
| @@ -9810,6 +9816,14 @@ abstract class PropertyInducingElement implements VariableElement {
|
| PropertyAccessorElement get getter;
|
|
|
| /**
|
| + * Return the propagated type of this variable, or `null` if type propagation has not been
|
| + * performed, for example because the variable is not final.
|
| + *
|
| + * @return the propagated type of this variable
|
| + */
|
| + DartType get propagatedType;
|
| +
|
| + /**
|
| * Return the setter associated with this variable, or `null` if the variable is effectively
|
| * `final` and therefore does not have a setter associated with it. (This can happen either
|
| * because the variable is explicitly defined as being `final` or because the variable is
|
| @@ -9846,6 +9860,12 @@ abstract class PropertyInducingElementImpl extends VariableElementImpl implement
|
| PropertyAccessorElement setter;
|
|
|
| /**
|
| + * The propagated type of this variable, or `null` if type propagation has not been
|
| + * performed.
|
| + */
|
| + DartType propagatedType;
|
| +
|
| + /**
|
| * An empty array of elements.
|
| */
|
| static List<PropertyInducingElement> EMPTY_ARRAY = new List<PropertyInducingElement>(0);
|
|
|