From 0bbb34adb847765f0bf16c23d512aff77cb934a0 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Tue, 22 Oct 2024 15:25:42 +0000 Subject: [PATCH] Elements. Remove deprecated FunctionMember. Change-Id: I0a5e8e5f644482cb69ba2873c0e97fa8ec21bd6a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391262 Commit-Queue: Konstantin Shcheglov Reviewed-by: Phil Quitslund Reviewed-by: Brian Wilkerson --- pkg/analyzer/lib/src/dart/element/member.dart | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/pkg/analyzer/lib/src/dart/element/member.dart b/pkg/analyzer/lib/src/dart/element/member.dart index 2094feaa34da..b122f15600ae 100644 --- a/pkg/analyzer/lib/src/dart/element/member.dart +++ b/pkg/analyzer/lib/src/dart/element/member.dart @@ -658,58 +658,6 @@ class FieldMember extends VariableMember } } -@Deprecated('There is no way to create an instance of this class') -class FunctionMember extends ExecutableMember implements FunctionElement { - FunctionMember(FunctionElement declaration) - : super( - declaration, - Substitution.empty, - Substitution.empty, - declaration.typeParameters, - ); - - @override - FunctionElement? get augmentation { - return declaration.augmentationTarget; - } - - @override - FunctionElement? get augmentationTarget { - return declaration.augmentationTarget; - } - - @override - ExecutableElement2 get baseElement => throw UnimplementedError(); - - @override - FunctionElement get declaration => super.declaration as FunctionElement; - - @override - Element get enclosingElement3 => declaration.enclosingElement3; - - @override - bool get isDartCoreIdentical => declaration.isDartCoreIdentical; - - @override - bool get isEntryPoint => declaration.isEntryPoint; - - @override - String get name => declaration.name; - - @override - Source get source => _declaration.source!; - - @override - T? accept(ElementVisitor visitor) { - return visitor.visitFunctionElement(this); - } - - @override - T? accept2(ElementVisitor2 visitor) { - throw UnimplementedError('Never created'); - } -} - /// A getter element defined in a parameterized type where the values of the /// type parameters are known. class GetterMember extends PropertyAccessorMember implements GetterElement {