Skip to content

Commit 030e60e

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Allow the name of an extension to be accessed while linking
Change-Id: I1e76e61e2ceed557bcb6f0644f836075f2631e79 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110182 Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent 46bcc46 commit 030e60e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/analyzer/lib/src/summary/link.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2571,11 +2571,13 @@ class ExtensionElementForLink
25712571
@override
25722572
final CompilationUnitElementForLink enclosingElement;
25732573

2574-
// TODO(brianwilkerson) Remove this field if it remains unreferenced.
25752574
final UnlinkedExtension _unlinkedExtension;
25762575

25772576
ExtensionElementForLink(this.enclosingElement, this._unlinkedExtension);
25782577

2578+
@override
2579+
String get name => _unlinkedExtension.name;
2580+
25792581
@override
25802582
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
25812583
}

0 commit comments

Comments
 (0)