ProviderResolver class
Resolves providers for a compiled template element.
Users may configure multiple providers with the same token on a given element, as well as configure tokens to act as an alias to another existing provider. It's the ProviderResolver's responsibility given such a configuration to reconcile overridden providers and collect aliases.
Constructors
- ProviderResolver(ProviderResolverHost _host, ProviderResolver? _parent)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
CompileTokenMetadata token, Expression providerValue) → void - Adds a builtin local provider for a template node.
-
addDirectiveProviders(
List< ProviderAst> providerList, List<CompileDirectiveMetadata> directives) → void - Given a list of directives (and component itself), adds providers for each directive at this node. Code generators that want to build instances can handle the createProviderInstance callback on the host interface.
-
containsLocalProvider(
CompileTokenMetadata token) → bool -
get(
CompileTokenMetadata token) → ProviderSource? -
getAliases(
CompileTokenMetadata providerToken) → List< CompileTokenMetadata> ? -
isAliasedProvider(
CompileTokenMetadata token) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited