Skip to content

Commit 0bbb34a

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove deprecated FunctionMember.
Change-Id: I0a5e8e5f644482cb69ba2873c0e97fa8ec21bd6a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391262 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 643d1ba commit 0bbb34a

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

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

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -658,58 +658,6 @@ class FieldMember extends VariableMember
658658
}
659659
}
660660

661-
@Deprecated('There is no way to create an instance of this class')
662-
class FunctionMember extends ExecutableMember implements FunctionElement {
663-
FunctionMember(FunctionElement declaration)
664-
: super(
665-
declaration,
666-
Substitution.empty,
667-
Substitution.empty,
668-
declaration.typeParameters,
669-
);
670-
671-
@override
672-
FunctionElement? get augmentation {
673-
return declaration.augmentationTarget;
674-
}
675-
676-
@override
677-
FunctionElement? get augmentationTarget {
678-
return declaration.augmentationTarget;
679-
}
680-
681-
@override
682-
ExecutableElement2 get baseElement => throw UnimplementedError();
683-
684-
@override
685-
FunctionElement get declaration => super.declaration as FunctionElement;
686-
687-
@override
688-
Element get enclosingElement3 => declaration.enclosingElement3;
689-
690-
@override
691-
bool get isDartCoreIdentical => declaration.isDartCoreIdentical;
692-
693-
@override
694-
bool get isEntryPoint => declaration.isEntryPoint;
695-
696-
@override
697-
String get name => declaration.name;
698-
699-
@override
700-
Source get source => _declaration.source!;
701-
702-
@override
703-
T? accept<T>(ElementVisitor<T> visitor) {
704-
return visitor.visitFunctionElement(this);
705-
}
706-
707-
@override
708-
T? accept2<T>(ElementVisitor2<T> visitor) {
709-
throw UnimplementedError('Never created');
710-
}
711-
}
712-
713661
/// A getter element defined in a parameterized type where the values of the
714662
/// type parameters are known.
715663
class GetterMember extends PropertyAccessorMember implements GetterElement {

0 commit comments

Comments
 (0)