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

Function ingestComponent

packages/compiler/src/template/pipeline/src/ingest.ts:56–83  ·  view source on GitHub ↗
(
  componentName: string,
  template: t.Node[],
  constantPool: ConstantPool,
  compilationMode: TemplateCompilationMode,
  relativeContextFilePath: string,
  i18nUseExternalIds: boolean,
  deferMeta: R3ComponentDeferMetadata,
  allDeferrableDepsFn: o.ReadVarExpr | null,
  relativeTemplatePath: string | null,
  enableDebugLocations: boolean,
  legacyOptionalChaining: boolean,
)

Source from the content-addressed store, hash-verified

54 * TODO: Refactor more of the ingestion code into phases.
55 */
56export function ingestComponent(
57 componentName: string,
58 template: t.Node[],
59 constantPool: ConstantPool,
60 compilationMode: TemplateCompilationMode,
61 relativeContextFilePath: string,
62 i18nUseExternalIds: boolean,
63 deferMeta: R3ComponentDeferMetadata,
64 allDeferrableDepsFn: o.ReadVarExpr | null,
65 relativeTemplatePath: string | null,
66 enableDebugLocations: boolean,
67 legacyOptionalChaining: boolean,
68): ComponentCompilationJob {
69 const job = new ComponentCompilationJob(
70 componentName,
71 constantPool,
72 compilationMode,
73 relativeContextFilePath,
74 i18nUseExternalIds,
75 deferMeta,
76 allDeferrableDepsFn,
77 relativeTemplatePath,
78 enableDebugLocations,
79 legacyOptionalChaining,
80 );
81 ingestNodes(job.root, template);
82 return job;
83}
84
85export interface HostBindingInput {
86 componentName: string;

Callers 1

Calls 1

ingestNodesFunction · 0.85

Tested by

no test coverage detected