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 <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Brian Wilkerson 2019-07-23 22:57:32 +00:00 committed by commit-bot@chromium.org
parent 46bcc460c0
commit 030e60e0ef

View file

@ -2571,11 +2571,13 @@ class ExtensionElementForLink
@override
final CompilationUnitElementForLink enclosingElement;
// TODO(brianwilkerson) Remove this field if it remains unreferenced.
final UnlinkedExtension _unlinkedExtension;
ExtensionElementForLink(this.enclosingElement, this._unlinkedExtension);
@override
String get name => _unlinkedExtension.name;
@override
noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}