MCPcopy
hub / github.com/angular/angular-cli / addExportToModule

Function addExportToModule

packages/schematics/angular/utility/ast-utils.ts:523–530  ·  view source on GitHub ↗
(
  source: ts.SourceFile,
  modulePath: string,
  classifiedName: string,
  importPath: string,
)

Source from the content-addressed store, hash-verified

521 * Custom function to insert an export into NgModule. It also imports it.
522 */
523export function addExportToModule(
524 source: ts.SourceFile,
525 modulePath: string,
526 classifiedName: string,
527 importPath: string,
528): Change[] {
529 return addSymbolToNgModuleMetadata(source, modulePath, 'exports', classifiedName, importPath);
530}
531
532/**
533 * Custom function to insert an export into NgModule. It also imports it.

Callers 1

ast-utils_spec.tsFile · 0.90

Calls 1

Tested by

no test coverage detected