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

Function isSingleI18nIcu

packages/compiler/src/template/pipeline/src/ingest.ts:47–49  ·  view source on GitHub ↗
(meta?: i18n.I18nMeta)

Source from the content-addressed store, hash-verified

45}
46
47export function isSingleI18nIcu(meta?: i18n.I18nMeta): meta is i18n.I18nMeta & {nodes: [i18n.Icu]} {
48 return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof i18n.Icu;
49}
50
51/**
52 * Process a template AST and convert it into a `ComponentCompilation` in the intermediate

Callers 1

ingestIcuFunction · 0.85

Calls 1

isI18nRootNodeFunction · 0.85

Tested by

no test coverage detected