v1/angular_compiler 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.
InjectorEmitter
Generates .dart source code given a list of providers to bind.
InjectorReader
Determines details for generating code as a result of @Injector.generate.
ModuleElement
ModuleReader
Support for reading and parsing constant Modules into data structures.
NgAssetReader
Wraps an AssetReader to provide an ergonomic API for finding input files.
OpaqueTokenElement
A statically parsed OpaqueToken used as an identifier for injection.
ProviderElement
A statically parsed Provider.
ProviderReader
Support for reading and parsing constant Providers into data structures.
SplitDartEmitter
TemplateOutliner
Generates an outline of the public API of a .template.dart file.
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.
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.
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
$Component → const TypeChecker
$ContentChild → const TypeChecker
$ContentChildren → const TypeChecker
$Directive → const TypeChecker
$DoCheck → const TypeChecker
$Host → const TypeChecker
$Inject → const TypeChecker
$Injectable → const TypeChecker
$Input → 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

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 instance object.
urlOf(Element? element, [String? name]) Uri
Returns a canonical URL pointing to element.