Skip to content

Commit

Permalink
Elements. Remove deprecated FunctionMember.
Browse files Browse the repository at this point in the history
Change-Id: I0a5e8e5f644482cb69ba2873c0e97fa8ec21bd6a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391262
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
  • Loading branch information
scheglov authored and Commit Queue committed Oct 22, 2024
1 parent 643d1ba commit 0bbb34a
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions pkg/analyzer/lib/src/dart/element/member.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(ElementVisitor<T> visitor) {
return visitor.visitFunctionElement(this);
}

@override
T? accept2<T>(ElementVisitor2<T> 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 {
Expand Down

0 comments on commit 0bbb34a

Please sign in to comment.