MCPcopy Index your code
hub / github.com/angular/angular / createI18nMessageFactory

Function createI18nMessageFactory

packages/compiler/src/i18n/i18n_parser.ts:43–50  ·  view source on GitHub ↗
(
  retainEmptyTokens: boolean,
  preserveExpressionWhitespace: boolean,
)

Source from the content-addressed store, hash-verified

41 * Returns a function converting html nodes to an i18n Message
42 */
43export function createI18nMessageFactory(
44 retainEmptyTokens: boolean,
45 preserveExpressionWhitespace: boolean,
46): I18nMessageFactory {
47 const visitor = new _I18nVisitor(_expParser, retainEmptyTokens, preserveExpressionWhitespace);
48 return (nodes, meaning, description, customId, visitNodeFn) =>
49 visitor.toI18nMessage(nodes, meaning, description, customId, visitNodeFn);
50}
51
52interface I18nMessageVisitorContext {
53 isIcu: boolean;

Callers 3

i18n_ast_spec.tsFile · 0.90
_initMethod · 0.90
_generateI18nMessageMethod · 0.90

Calls 1

toI18nMessageMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…