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

Function directiveDefs

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

Source from the content-addressed store, hash-verified

245 pipeDefs: () => PipeDefList;
246} {
247 const directiveDefs = () => {
248 if (ngDevMode) {
249 for (const rawDep of imports) {
250 verifyStandaloneImport(rawDep, type);
251 }
252 }
253
254 if (!isComponent(type)) {
255 return [];
256 }
257
258 const scope = depsTracker.getStandaloneComponentScope(type, imports);
259
260 return [...scope.compilation.directives]
261 .map((p) => (getComponentDef(p) || getDirectiveDef(p))!)
262 .filter((d) => d !== null);
263 };
264
265 const pipeDefs = () => {
266 if (ngDevMode) {

Callers

nothing calls this directly

Calls 7

verifyStandaloneImportFunction · 0.90
isComponentFunction · 0.90
getComponentDefFunction · 0.90
getDirectiveDefFunction · 0.90
mapMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected