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

Function addCreateNodeAndAppend

packages/core/src/render3/i18n/i18n_parse.ts:960–975  ·  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

958}
959
960function addCreateNodeAndAppend(
961 create: IcuCreateOpCodes,
962 marker: null | ICU_MARKER | ELEMENT_MARKER,
963 text: string,
964 appendToParentIdx: number,
965 createAtIdx: number,
966) {
967 if (marker !== null) {
968 create.push(marker);
969 }
970 create.push(
971 text,
972 createAtIdx,
973 icuCreateOpCode(IcuCreateOpCode.AppendChild, appendToParentIdx, createAtIdx),
974 );
975}
976
977function addCreateAttribute(
978 create: IcuCreateOpCodes,

Callers 1

walkIcuTreeFunction · 0.85

Calls 2

icuCreateOpCodeFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected