( 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, foreignImports: R3ForeignComponentMetadata[] | null, )
| 58 | * TODO: Refactor more of the ingestion code into phases. |
| 59 | */ |
| 60 | export function ingestComponent( |
| 61 | componentName: string, |
| 62 | template: t.Node[], |
| 63 | constantPool: ConstantPool, |
| 64 | compilationMode: TemplateCompilationMode, |
| 65 | relativeContextFilePath: string, |
| 66 | i18nUseExternalIds: boolean, |
| 67 | deferMeta: R3ComponentDeferMetadata, |
| 68 | allDeferrableDepsFn: o.ReadVarExpr | null, |
| 69 | relativeTemplatePath: string | null, |
| 70 | enableDebugLocations: boolean, |
| 71 | legacyOptionalChaining: boolean, |
| 72 | foreignImports: R3ForeignComponentMetadata[] | null, |
| 73 | ): ComponentCompilationJob { |
| 74 | const job = new ComponentCompilationJob( |
| 75 | componentName, |
| 76 | constantPool, |
| 77 | compilationMode, |
| 78 | relativeContextFilePath, |
| 79 | i18nUseExternalIds, |
| 80 | deferMeta, |
| 81 | allDeferrableDepsFn, |
| 82 | relativeTemplatePath, |
| 83 | enableDebugLocations, |
| 84 | legacyOptionalChaining, |
| 85 | foreignImports, |
| 86 | ); |
| 87 | ingestNodes(job.root, template); |
| 88 | return job; |
| 89 | } |
| 90 | |
| 91 | export interface HostBindingInput { |
| 92 | componentName: string; |
no test coverage detected