MCPcopy
hub / github.com/angular/angular / computeDecimalDigest

Function computeDecimalDigest

packages/compiler/src/i18n/digest.ts:42–46  ·  view source on GitHub ↗
(message: i18n.Message)

Source from the content-addressed store, hash-verified

40 * Compute the message id using the XLIFF2/XMB/$localize digest.
41 */
42export function computeDecimalDigest(message: i18n.Message): string {
43 const visitor = new _SerializerIgnoreIcuExpVisitor();
44 const parts = message.nodes.map((a) => a.visit(visitor, null));
45 return computeMsgId(parts.join(''), message.meaning);
46}
47
48/**
49 * Serialize the i18n ast to something xml-like in order to generate an UID.

Callers 2

_setLegacyIdsMethod · 0.90
decimalDigestFunction · 0.85

Calls 4

computeMsgIdFunction · 0.85
mapMethod · 0.80
visitMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…