mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 15:09:04 +00:00
Remove DynamicElementImpl.library property.
R=brianwilkerson@google.com Change-Id: I2be6a79916639564605ef519a1b55475cb55a36e Reviewed-on: https://dart-review.googlesource.com/c/78340 Reviewed-by: Mike Fairhurst <mfairhurst@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
daa13ad0aa
commit
f35465dafd
|
@ -2458,8 +2458,6 @@ class DynamicElementImpl extends ElementImpl implements TypeDefiningElement {
|
|||
@override
|
||||
DynamicTypeImpl type;
|
||||
|
||||
LibraryElement _library;
|
||||
|
||||
/**
|
||||
* Initialize a newly created instance of this class. Instances of this class
|
||||
* should <b>not</b> be created except as part of creating the type associated
|
||||
|
@ -2473,14 +2471,6 @@ class DynamicElementImpl extends ElementImpl implements TypeDefiningElement {
|
|||
@override
|
||||
ElementKind get kind => ElementKind.DYNAMIC;
|
||||
|
||||
@override
|
||||
LibraryElement get library => _library;
|
||||
|
||||
set library(LibraryElement library) {
|
||||
assert(library.name == 'dart.core');
|
||||
_library = library;
|
||||
}
|
||||
|
||||
@override
|
||||
T accept<T>(ElementVisitor<T> visitor) => null;
|
||||
}
|
||||
|
|
|
@ -723,7 +723,6 @@ class NamespaceBuilder {
|
|||
// true of, for instance, `Object`, because `Object` has a source definition
|
||||
// which is not possible for `dynamic`.
|
||||
if (library.isDartCore) {
|
||||
DynamicElementImpl.instance.library = library;
|
||||
definedNames['dynamic'] = DynamicElementImpl.instance;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue