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

Function verifyNotStandalone

packages/core/src/render3/jit/module.ts:330–339  ·  view source on GitHub ↗
(type: Type<any>, moduleType: NgModuleType)

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls 7

resolveForwardRefFunction · 0.90
getPipeDefFunction · 0.90
getComponentDefFunction · 0.90
getDirectiveDefFunction · 0.90
stringifyForErrorFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected