(type: Type<any>, moduleType: NgModuleType)
| 328 | } |
| 329 | |
| 330 | function verifyNotStandalone(type: Type<any>, moduleType: NgModuleType): void { |
| 331 | type = resolveForwardRef(type); |
| 332 | // Check the pipe def first: a pipe that extends an abstract directive base class also has |
| 333 | // an (inherited) directive def, and we want the pipe's own `standalone` flag here. |
| 334 | const def = getPipeDef(type) || getComponentDef(type) || getDirectiveDef(type); |
| 335 | if (def?.standalone) { |
| 336 | const location = `"${stringifyForError(moduleType)}" NgModule`; |
| 337 | errors.push(generateStandaloneInDeclarationsError(type, location)); |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | function verifyExportsAreDeclaredOrReExported(type: Type<any>) { |
| 342 | type = resolveForwardRef(type); |
no test coverage detected