Skip to content

Commit 7c71115

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Remove unused type parameter from VariableMember.
R=brianwilkerson@google.com Change-Id: I45858e91df5831c44fc8dbd4ed58d0d3527a7d6b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/125083 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
1 parent cd22f16 commit 7c71115

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

pkg/analyzer/lib/src/dart/element/member.dart

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)