@@ -671,14 +671,12 @@ class ParameterMember extends VariableMember
671671 implements ParameterElement {
672672 /**
673673 * Initialize a newly created element to represent a parameter, based on the
674- * [declaration] , with applied [substitution] . If [type] is passed it will
675- * represent the already substituted type.
674+ * [declaration] , with applied [substitution] .
676675 */
677676 ParameterMember (
678677 ParameterElement declaration,
679- MapSubstitution substitution, [
680- DartType type,
681- ]) : super ._(declaration, substitution, type);
678+ MapSubstitution substitution,
679+ ) : super (declaration, substitution);
682680
683681 @deprecated
684682 @override
@@ -995,18 +993,8 @@ abstract class VariableMember extends Member implements VariableElement {
995993 * Initialize a newly created element to represent a variable, based on the
996994 * [declaration] , with applied [substitution] .
997995 */
998- VariableMember (
999- VariableElement declaration,
1000- MapSubstitution substitution, [
1001- DartType type,
1002- ]) : _type = type,
1003- super (declaration, substitution);
1004-
1005- // TODO(jmesserly): this is temporary to allow the ParameterMember subclass.
1006- // Apparently mixins don't work with optional params.
1007- VariableMember ._(VariableElement declaration, MapSubstitution substitution,
1008- [DartType type])
1009- : this (declaration, substitution, type);
996+ VariableMember (VariableElement declaration, MapSubstitution substitution)
997+ : super (declaration, substitution);
1010998
1011999 @deprecated
10121000 @override
0 commit comments