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

Function icuCreateOpCode

packages/core/src/render3/i18n/i18n_util.ts:149–155  ·  view source on GitHub ↗
(opCode: IcuCreateOpCode, parentIdx: number, refIdx: number)

Source from the content-addressed store, hash-verified

147}
148
149export function icuCreateOpCode(opCode: IcuCreateOpCode, parentIdx: number, refIdx: number) {
150 ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');
151 ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');
152 return (
153 opCode | (parentIdx << IcuCreateOpCode.SHIFT_PARENT) | (refIdx << IcuCreateOpCode.SHIFT_REF)
154 );
155}
156
157// Returns whether the given value corresponds to a root template message,
158// or a sub-template.

Callers 1

addCreateNodeAndAppendFunction · 0.90

Calls 2

assertGreaterThanOrEqualFunction · 0.90
assertGreaterThanFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…