()
| 247 | let cachedDirectiveDefs: DirectiveDefList | null = null; |
| 248 | let cachedPipeDefs: PipeDefList | null = null; |
| 249 | const directiveDefs = () => { |
| 250 | if (ngDevMode) { |
| 251 | for (const rawDep of imports) { |
| 252 | verifyStandaloneImport(rawDep, type); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | if (!isComponent(type)) { |
| 257 | return []; |
| 258 | } |
| 259 | |
| 260 | const scope = depsTracker.getStandaloneComponentScope(type, imports); |
| 261 | |
| 262 | return [...scope.compilation.directives] |
| 263 | .map((p) => (getComponentDef(p) || getDirectiveDef(p))!) |
| 264 | .filter((d) => d !== null); |
| 265 | }; |
| 266 | |
| 267 | const pipeDefs = () => { |
| 268 | if (ngDevMode) { |
nothing calls this directly
no test coverage detected