MCPcopy Create free account
hub / github.com/angular/angular / getIndexerTemplateIdentifiers

Function getIndexerTemplateIdentifiers

packages/compiler/src/indexer/template.ts:446–456  ·  view source on GitHub ↗
(boundTemplate: AbstractBoundTemplate<T>)

Source from the content-addressed store, hash-verified

444 * @return identifiers in template
445 */
446export function getIndexerTemplateIdentifiers<T>(boundTemplate: AbstractBoundTemplate<T>): {
447 identifiers: Set<TopLevelIdentifier<T>>;
448 errors: Error[];
449} {
450 const visitor = new IndexerVisitor<T>(boundTemplate);
451 const template = boundTemplate.getTemplateAst();
452 if (template !== undefined) {
453 t.visitAll(visitor, template);
454 }
455 return {identifiers: visitor.identifiers, errors: visitor.errors};
456}

Callers 2

generateIndexerAnalysisFunction · 0.90
transform_spec.tsFile · 0.90

Calls 2

getTemplateAstMethod · 0.65
visitAllMethod · 0.45

Tested by

no test coverage detected