LibraryReader class Null safety

A high-level wrapper API with common functionality for LibraryElement.

Constructors

LibraryReader(LibraryElement element)

Properties

allElements Iterable<Element>
All of the declarations in this library.
read-only
classes Iterable<ClassElement>
All of the elements representing classes in this library.
read-only
element LibraryElement
final
enums Iterable<ClassElement>
All of the elements representing enums in this library.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

annotatedWith(TypeChecker checker, {bool throwOnUnresolved = true}) Iterable<AnnotatedElement>
All of the declarations in this library annotated with checker.
annotatedWithExact(TypeChecker checker, {bool throwOnUnresolved = true}) Iterable<AnnotatedElement>
All of the declarations in this library annotated with exactly checker.
findType(String name) ClassElement?
Returns a top-level ClassElement publicly visible in by name. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pathToAsset(AssetId asset) Uri
Returns a Uri from the current library to the target asset. [...]
pathToElement(Element element) Uri
Returns a Uri from the current library to the target element. [...]
pathToUrl(dynamic toUrlOrString) Uri
Returns a Uri from the current library to the one provided. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited