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

Function isI18nRootNode

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

45const ANIMATE_PREFIX = 'animate.';
46
47export function isI18nRootNode(meta?: i18n.I18nMeta): meta is i18n.Message {
48 return meta instanceof i18n.Message;
49}
50
51function isSingleI18nIcu(meta?: i18n.I18nMeta): meta is i18n.I18nMeta & {nodes: [i18n.Icu]} {
52 return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof i18n.Icu;

Callers 4

visitElementMethod · 0.90
visitExpansionMethod · 0.90
visitComponentMethod · 0.90
isSingleI18nIcuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected