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

Function addCreateNodeAndAppend

packages/core/src/render3/i18n/i18n_parse.ts:986–1001  ·  view source on GitHub ↗
(
  create: IcuCreateOpCodes,
  marker: null | ICU_MARKER | ELEMENT_MARKER,
  text: string,
  appendToParentIdx: number,
  createAtIdx: number,
)

Source from the content-addressed store, hash-verified

984}
985
986function addCreateNodeAndAppend(
987 create: IcuCreateOpCodes,
988 marker: null | ICU_MARKER | ELEMENT_MARKER,
989 text: string,
990 appendToParentIdx: number,
991 createAtIdx: number,
992) {
993 if (marker !== null) {
994 create.push(marker);
995 }
996 create.push(
997 text,
998 createAtIdx,
999 icuCreateOpCode(IcuCreateOpCode.AppendChild, appendToParentIdx, createAtIdx),
1000 );
1001}
1002
1003function addCreateAttribute(
1004 create: IcuCreateOpCodes,

Callers 1

walkIcuTreeFunction · 0.85

Calls 2

icuCreateOpCodeFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected