ProviderViewContext constructor
ProviderViewContext(
- CompileDirectiveMetadata component,
- SourceSpan sourceSpan
Implementation
ProviderViewContext(this.component, this.sourceSpan) {
viewQueries = _getViewQueries(component);
viewProviders = CompileTokenMap<bool>();
var normalizedViewProviders = _normalizeProviders(
component.viewProviders,
sourceSpan,
);
// Deduplicate providers by token.
for (var provider in normalizedViewProviders) {
if (viewProviders.get(provider.token!) == null) {
viewProviders.add(provider.token!, true);
}
}
}