Skip to content

Commit 6a324ac

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 GenericFunctionTypeElement.
Change-Id: I2d144ed740f38c13355dcead83978ea5da6b073a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423401 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent aadf532 commit 6a324ac

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,8 +3178,6 @@ package:analyzer/dart/element/element.dart:
31783178
parameters (getter: List<ParameterElement>)
31793179
returnType (getter: DartType)
31803180
type (getter: FunctionType)
3181-
GenericFunctionTypeElement (class extends Object implements FunctionTypedElement, deprecated):
3182-
new (constructor: GenericFunctionTypeElement Function())
31833181
HideElementCombinator (class extends Object implements NamespaceCombinator):
31843182
new (constructor: HideElementCombinator Function())
31853183
hiddenNames (getter: List<String>)

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,6 @@ abstract class FunctionTypedElement implements TypeParameterizedElement {
929929
FunctionType get type;
930930
}
931931

932-
/// The pseudo-declaration that defines a generic function type.
933-
///
934-
/// Clients may not extend, implement, or mix-in this class.
935-
@Deprecated('Use GenericFunctionTypeElement2 instead')
936-
abstract class GenericFunctionTypeElement implements FunctionTypedElement {}
937-
938932
/// A combinator that causes some of the names in a namespace to be hidden when
939933
/// being imported.
940934
///

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5037,13 +5037,8 @@ abstract class FunctionTypedElementImpl2 extends TypeParameterizedElementImpl2
50375037
///
50385038
/// Clients may not extend, implement or mix-in this class.
50395039
class GenericFunctionTypeElementImpl extends _ExistingElementImpl
5040-
with
5041-
TypeParameterizedElementMixin
5042-
implements
5043-
// ignore:deprecated_member_use_from_same_package,analyzer_use_new_elements
5044-
GenericFunctionTypeElement,
5045-
FunctionTypedElementImpl,
5046-
GenericFunctionTypeFragment {
5040+
with TypeParameterizedElementMixin
5041+
implements FunctionTypedElementImpl, GenericFunctionTypeFragment {
50475042
/// The declared return type of the function.
50485043
TypeImpl? _returnType;
50495044

0 commit comments

Comments
 (0)