MCPcopy Index your code
hub / github.com/angular/angular / verifyNotStandalone

Function verifyNotStandalone

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

Source from the content-addressed store, hash-verified

315 }
316
317 function verifyNotStandalone(type: Type<any>, moduleType: NgModuleType): void {
318 type = resolveForwardRef(type);
319 const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
320 if (def?.standalone) {
321 const location = `"${stringifyForError(moduleType)}" NgModule`;
322 errors.push(generateStandaloneInDeclarationsError(type, location));
323 }
324 }
325
326 function verifyExportsAreDeclaredOrReExported(type: Type<any>) {
327 type = resolveForwardRef(type);

Callers 1

Calls 7

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…