v1/src/angular_compiler/analyzer library
Classes
- DependencyElement
- Statically analyzed information necessary to satisfy a dependency.
-
DependencyInvocation<
E extends Element?> - Statically analyzed arguments needed to invoke a constructor or function.
- DependencyReader
- Support for reading and parsing a class or function's "dependencies".
- DirectiveVisitor
-
Utility class for visiting important methods and fields in an
@Directive
. - InjectorReader
-
Determines details for generating code as a result of
@Injector.generate
. - InjectorVisitor
-
To be implemented by an emitter class to create a
GeneratedInjector
. - ModuleElement
- ModuleReader
-
Support for reading and parsing constant
Module
s into data structures. - OpaqueTokenElement
-
A statically parsed
OpaqueToken
used as an identifier for injection. - ProviderElement
-
A statically parsed
Provider
. - ProviderReader
-
Support for reading and parsing constant
Provider
s into data structures. - TokenElement
- A statically parsed token used as an identifier for injection.
- TokenReader
- Support for reading and parsing a "token" for dependency injection.
- TypedElement
-
A statically parsed
Typed
used to specify type arguments on a directive. - TypedReader
-
Parses types from compile-time constant
Typed
expressions. - TypeLink
- An abstraction over pointing to a type in a given Dart source file.
- TypeTokenElement
-
A statically parsed
Type
used as an identifier for injection. - UseClassProviderElement
-
A statically parsed
Provider
that describes a new class instance. - UseExistingProviderElement
-
A statically parsed
Provider
that redirects one token to another. - UseFactoryProviderElement
-
A statically parsed
Provider
that describes a function invocation. - UseValueProviderElement
-
A statically parsed
Provider
that describes a constant expression.
Constants
- $AfterChanges → const TypeChecker
- $AfterContentChecked → const TypeChecker
- $AfterContentInit → const TypeChecker
- $AfterViewChecked → const TypeChecker
- $AfterViewInit → const TypeChecker
- $Attribute → const TypeChecker
- $ChangeDetectionLink → const TypeChecker
- $Component → const TypeChecker
- $ContentChild → const TypeChecker
- $ContentChildren → const TypeChecker
- $Directive → const TypeChecker
- $DoCheck → const TypeChecker
- $GenerateInjector → const TypeChecker
- $Host → const TypeChecker
- $HostBinding → const TypeChecker
- $HostListener → const TypeChecker
- $Inject → const TypeChecker
- $Injectable → const TypeChecker
- $Input → const TypeChecker
- $Module → const TypeChecker
- $MultiToken → const TypeChecker
- $OnDestroy → const TypeChecker
- $OnInit → const TypeChecker
- $OpaqueToken → const TypeChecker
- $Optional → const TypeChecker
- $Output → const TypeChecker
- $Pipe → const TypeChecker
- $Provider → const TypeChecker
- $Self → const TypeChecker
- $SkipSelf → const TypeChecker
- $Typed → const TypeChecker
- $ViewChild → const TypeChecker
- $ViewChildren → const TypeChecker
Functions
-
getTypeImport(
DartType type) → String -
Returns the import URL for
type
. -
getTypeName(
DartType type) → String? -
Forwards and backwards-compatible method of getting the "name" of
type
. -
isGlobalSingletonService(
TypeLink service) → bool -
linkToReference(
TypeLink link, LibraryReader library) → TypeReference -
Returns as a
code_builder
TypeReference
for code generation. -
linkTypeOf(
DartType type) → TypeLink -
Returns a TypeLink to the given statically analyzed
DartType
. -
typeArgumentOf(
DartObject object, [int index = 0]) → DartType -
Returns the bound
DartType
from the instanceobject
. -
typeToCode(
DartType? type) → String? -
urlOf(
Element? element, [String? name]) → Uri -
Returns a canonical URL pointing to
element
.
Exceptions / Errors
- InvalidFactoryException
-
Thrown when a non-factory value is attached to a
FactoryProvider
. - NullFactoryException
-
Thrown when a value of
null
is read forFactoryProvider
. - NullTokenException
-
Thrown when a value of
null
is read for a provider token. - ReviveError
- UnsupportedProviderException