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

Function toT18n

packages/core/test/render3/i18n/i18n_parse_spec.ts:373–381  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

371 });
372
373 function toT18n(text: string) {
374 const tNodeIndex = HEADER_OFFSET;
375 fixture.enterView();
376 i18nStartFirstCreatePass(fixture.tView, 0, fixture.lView, tNodeIndex, text, -1);
377 fixture.leaveView();
378 const tI18n = fixture.tView.data[tNodeIndex] as TI18n;
379 expect(tI18n).toEqual(matchTI18n({}));
380 return tI18n;
381 }
382});

Callers 1

i18n_parse_spec.tsFile · 0.85

Calls 4

i18nStartFirstCreatePassFunction · 0.90
matchTI18nFunction · 0.90
enterViewMethod · 0.80
leaveViewMethod · 0.80

Tested by

no test coverage detected