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

Function ingestText

packages/compiler/src/template/pipeline/src/ingest.ts:447–451  ·  view source on GitHub ↗

* Ingest a literal text node from the AST into the given `ViewCompilation`.

(unit: ViewCompilationUnit, text: t.Text, icuPlaceholder: string | null)

Source from the content-addressed store, hash-verified

445 * Ingest a literal text node from the AST into the given `ViewCompilation`.
446 */
447function ingestText(unit: ViewCompilationUnit, text: t.Text, icuPlaceholder: string | null): void {
448 unit.create.push(
449 ir.createTextOp(unit.job.allocateXrefId(), text.value, icuPlaceholder, text.sourceSpan),
450 );
451}
452
453/**
454 * Ingest an interpolated text node from the AST into the given `ViewCompilation`.

Callers 2

ingestNodesFunction · 0.85
ingestIcuFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected