(
/** Context provided to all migrations. */
private _context: Context,
/** TypeScript program using workspace paths. */
private _program: ts.Program,
/** File system used for reading, writing and editing files. */
private _fileSystem: FileSystem,
/**
* Set of analyzed files. Used for avoiding multiple migration runs if
* files overlap between targets.
*/
private _analyzedFiles: Set<WorkspacePath> = new Set(),
/** Logger used for printing messages. */
private _logger: UpdateLogger = defaultLogger,
)
| 27 | private readonly _typeChecker: ts.TypeChecker; |
| 28 | |
| 29 | constructor( |
| 30 | /** Context provided to all migrations. */ |
| 31 | private _context: Context, |
| 32 | /** TypeScript program using workspace paths. */ |
| 33 | private _program: ts.Program, |
| 34 | /** File system used for reading, writing and editing files. */ |
| 35 | private _fileSystem: FileSystem, |
| 36 | /** |
| 37 | * Set of analyzed files. Used for avoiding multiple migration runs if |
| 38 | * files overlap between targets. |
| 39 | */ |
| 40 | private _analyzedFiles: Set<WorkspacePath> = new Set(), |
| 41 | /** Logger used for printing messages. */ |
| 42 | private _logger: UpdateLogger = defaultLogger, |
| 43 | ) { |
| 44 | this._typeChecker = this._program.getTypeChecker(); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Migrates the project to the specified target version. |
nothing calls this directly
no outgoing calls
no test coverage detected