(dep: R3DependencyMetadata)
| 295 | } |
| 296 | |
| 297 | function createCtorDepType(dep: R3DependencyMetadata): o.LiteralMapExpr | null { |
| 298 | const entries: {key: string; quoted: boolean; value: o.Expression}[] = []; |
| 299 | |
| 300 | if (dep.attributeNameType !== null) { |
| 301 | entries.push({key: 'attribute', value: dep.attributeNameType, quoted: false}); |
| 302 | } |
| 303 | if (dep.optional) { |
| 304 | entries.push({key: 'optional', value: o.literal(true), quoted: false}); |
| 305 | } |
| 306 | if (dep.host) { |
| 307 | entries.push({key: 'host', value: o.literal(true), quoted: false}); |
| 308 | } |
| 309 | if (dep.self) { |
| 310 | entries.push({key: 'self', value: o.literal(true), quoted: false}); |
| 311 | } |
| 312 | if (dep.skipSelf) { |
| 313 | entries.push({key: 'skipSelf', value: o.literal(true), quoted: false}); |
| 314 | } |
| 315 | |
| 316 | return entries.length > 0 ? o.literalMap(entries) : null; |
| 317 | } |
| 318 | |
| 319 | export function isDelegatedFactoryMetadata( |
| 320 | meta: R3FactoryMetadata, |
no test coverage detected