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

Function pipeDefs

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

Source from the content-addressed store, hash-verified

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