MCPcopy Create free account
hub / github.com/angular/components / constructor

Function constructor

src/cdk/schematics/update-tool/migration.ts:39–57  ·  view source on GitHub ↗
(
    /** TypeScript program for the migration. */
    public program: ts.Program,
    /** TypeChecker instance for the analysis program. */
    public typeChecker: ts.TypeChecker,
    /**
     * Version for which the migration rule should run. Null if the migration
     * is invoked manually.
     */
    public targetVersion: TargetVersion | null,
    /** Context data for the migration. */
    public context: Context,
    /** Upgrade data passed to the migration. */
    public upgradeData: Data,
    /** File system that can be used for modifying files. */
    public fileSystem: FileSystem,
    /** Logger that can be used to print messages as part of the migration. */
    public logger: UpdateLogger,
  )

Source from the content-addressed store, hash-verified

37 abstract enabled: boolean;
38
39 constructor(
40 /** TypeScript program for the migration. */
41 public program: ts.Program,
42 /** TypeChecker instance for the analysis program. */
43 public typeChecker: ts.TypeChecker,
44 /**
45 * Version for which the migration rule should run. Null if the migration
46 * is invoked manually.
47 */
48 public targetVersion: TargetVersion | null,
49 /** Context data for the migration. */
50 public context: Context,
51 /** Upgrade data passed to the migration. */
52 public upgradeData: Data,
53 /** File system that can be used for modifying files. */
54 public fileSystem: FileSystem,
55 /** Logger that can be used to print messages as part of the migration. */
56 public logger: UpdateLogger,
57 ) {}
58
59 /** Method can be used to perform global analysis of the program. */
60 init(): void {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected