( 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, )
| 54 | * TODO: Refactor more of the ingestion code into phases. |
| 55 | */ |
| 56 | export 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 | |
| 85 | export interface HostBindingInput { |
| 86 | componentName: string; |
no test coverage detected