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:
Konstantin Shcheglov 2018-10-09 20:51:54 +00:00 committed by commit-bot@chromium.org
parent daa13ad0aa
commit f35465dafd
2 changed files with 0 additions and 11 deletions

View file

@ -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;
}

View file

@ -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;
}