MCPcopy Create free account
hub / github.com/angular/angular / pipeDefs

Function pipeDefs

packages/core/src/render3/jit/directive.ts:265–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 };
264
265 const pipeDefs = () => {
266 if (ngDevMode) {
267 for (const rawDep of imports) {
268 verifyStandaloneImport(rawDep, type);
269 }
270 }
271
272 if (!isComponent(type)) {
273 return [];
274 }
275
276 const scope = depsTracker.getStandaloneComponentScope(type, imports);
277
278 return [...scope.compilation.pipes].map((p) => getPipeDef(p)!).filter((d) => d !== null);
279 };
280
281 return {
282 directiveDefs,

Callers

nothing calls this directly

Calls 6

verifyStandaloneImportFunction · 0.90
isComponentFunction · 0.90
getPipeDefFunction · 0.90
mapMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected