ReflectableReader class
Determines how to generate and link to initReflector
in other files.
AngularDart's initReflector
is used to create a graph of all generated
code that mirrors user-authored code. Significant classes and factories are
recorded into a global map and can be used at runtime (via the reflector
).
The recorder has various options on how much recording is required for a given application, with the end-goal being requiring little or none for most applications.
Constructors
-
ReflectableReader({DependencyReader dependencyReader = const DependencyReader(), required FutureOr<
bool> hasInput(String), required Future<bool> isLibrary(String), String outputExtension = _defaultOutputExtension, bool recordComponentFactories = true, bool recordInjectableFactories = true}) -
const
- ReflectableReader.noLinking({DependencyReader dependencyReader = const DependencyReader(), String outputExtension = _defaultOutputExtension, bool recordComponentFactories = true, bool recordInjectableFactories = true})
-
Always emits an empty ReflectableOutput.urlsNeedingInitReflector.
const
Properties
- dependencyReader → DependencyReader
-
Used to read dependencies from dart objects.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hasInput
→ FutureOr<
bool> Function(String) -
Returns whether
uri
is a file part of the same build process.final -
isLibrary
→ Future<
bool> Function(String) -
Returns whether
uri
represents a summarized/analyzed dart library.final - outputExtension → String
-
File extension used when compiling AngularDart files.
final
- recordComponentFactories → bool
-
Whether to record
ComponentFactory
for@Component
-annotated classes.final - recordInjectableFactories → bool
-
Whether to record factory functions for
@Injectable
-annotated elements.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
LibraryElement library) → Future< ReflectableOutput> -
Returns information needed to write
.template.dart
files. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited