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

Function getIdentifiers

packages/compiler-cli/preprocessor/test/indexer_spec.ts:130–137  ·  view source on GitHub ↗
(
  comp: IndexedComponent,
  kind: IdentifierKind,
  name: string,
)

Source from the content-addressed store, hash-verified

128}
129
130function getIdentifiers<T extends TopLevelIdentifier = TopLevelIdentifier>(
131 comp: IndexedComponent,
132 kind: IdentifierKind,
133 name: string,
134): T[] {
135 const identifiers = Array.from(comp.template.identifiers);
136 return identifiers.filter((id) => id.kind === kind && id.name === name) as T[];
137}
138
139describe('Indexer', () => {
140 it('should index component properties', async () => {

Callers 1

indexer_spec.tsFile · 0.85

Calls 2

fromMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected