Skip to content

Commit 6bec51e

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Migrate FunctionReferenceResolver.
Change-Id: I4a9c0bafa016054a2cfeb1b9dcdfd191261bc456 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406402 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Phil Quitslund <[email protected]>
1 parent ca2119e commit 6bec51e

File tree

4 files changed

+138
-141
lines changed

4 files changed

+138
-141
lines changed

pkg/analyzer/lib/src/dart/ast/ast.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9725,11 +9725,11 @@ final class ImplicitCallReferenceImpl extends ExpressionImpl
97259725
List<DartType> typeArgumentTypes;
97269726

97279727
@override
9728-
MethodElement staticElement;
9728+
MethodElement2 element;
97299729

97309730
ImplicitCallReferenceImpl({
97319731
required ExpressionImpl expression,
9732-
required this.staticElement,
9732+
required this.element,
97339733
required TypeArgumentListImpl? typeArguments,
97349734
required this.typeArgumentTypes,
97359735
}) : _expression = expression,
@@ -9741,10 +9741,6 @@ final class ImplicitCallReferenceImpl extends ExpressionImpl
97419741
@override
97429742
Token get beginToken => expression.beginToken;
97439743

9744-
@experimental
9745-
@override
9746-
MethodElement2? get element => (staticElement as MethodFragment?)?.element;
9747-
97489744
@override
97499745
Token get endToken => typeArguments?.endToken ?? expression.endToken;
97509746

@@ -9759,6 +9755,10 @@ final class ImplicitCallReferenceImpl extends ExpressionImpl
97599755
Precedence get precedence =>
97609756
typeArguments == null ? expression.precedence : Precedence.postfix;
97619757

9758+
@experimental
9759+
@override
9760+
MethodElement get staticElement => element.asElement;
9761+
97629762
@override
97639763
TypeArgumentListImpl? get typeArguments => _typeArguments;
97649764

0 commit comments

Comments
 (0)