From a5c3b34173f2ac90c5be47e66f86e9d4b3dacf1b Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Mon, 13 Jan 2025 11:40:08 -0800 Subject: [PATCH] Elements. Set element for a synthetic covariant merge. Change-Id: I61e7ba6c6753811eedf75acdfdfcc294467dc8e0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/404200 Reviewed-by: Brian Wilkerson Reviewed-by: Phil Quitslund Commit-Queue: Konstantin Shcheglov --- pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart b/pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart index c4b87a4eb81e..8a37ecb0f7bc 100644 --- a/pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart +++ b/pkg/analyzer/lib/src/dart/element/inheritance_manager3.dart @@ -1071,6 +1071,11 @@ class InheritanceManager3 { result.parameters = transformedParameters; result.returnType = executable.returnType; result.typeParameters = executable.typeParameters.cast(); + result.element = MethodElementImpl2( + Reference.root(), // TODO(scheglov): wrong + executable.name, + result, + ); return result; }