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

Function createProgram

packages/compiler-cli/src/transformers/program.ts:13–25  ·  view source on GitHub ↗
({
  rootNames,
  options,
  host,
  oldProgram,
}: {
  rootNames: ReadonlyArray<string>;
  options: CompilerOptions;
  host: CompilerHost;
  oldProgram?: Program;
})

Source from the content-addressed store, hash-verified

11import {CompilerHost, CompilerOptions, Program} from './api';
12
13export function createProgram({
14 rootNames,
15 options,
16 host,
17 oldProgram,
18}: {
19 rootNames: ReadonlyArray<string>;
20 options: CompilerOptions;
21 host: CompilerHost;
22 oldProgram?: Program;
23}): Program {
24 return new NgtscProgram(rootNames, options, host, oldProgram as NgtscProgram | undefined);
25}

Callers 7

standaloneMigrationFunction · 0.90
driveDiagnosticsAsyncMethod · 0.50
driveIndexerMethod · 0.50
driveDocsExtractionMethod · 0.50
driveHmrMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…