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

Function toT18n

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

Source from the content-addressed store, hash-verified

344 });
345
346 function toT18n(text: string) {
347 const tNodeIndex = HEADER_OFFSET;
348 fixture.enterView();
349 i18nStartFirstCreatePass(fixture.tView, 0, fixture.lView, tNodeIndex, text, -1);
350 fixture.leaveView();
351 const tI18n = fixture.tView.data[tNodeIndex] as TI18n;
352 expect(tI18n).toEqual(matchTI18n({}));
353 return tI18n;
354 }
355});

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