Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import * as ts from 'typescript';
|
---|
9 | import { Migration } from '../../update-tool/migration';
|
---|
10 | import { UpgradeData } from '../upgrade-data';
|
---|
11 | /**
|
---|
12 | * Migration that visits every TypeScript new expression or super call and checks if
|
---|
13 | * the parameter type signature is invalid and needs to be updated manually.
|
---|
14 | */
|
---|
15 | export declare class ConstructorSignatureMigration extends Migration<UpgradeData> {
|
---|
16 | data: string[];
|
---|
17 | enabled: boolean;
|
---|
18 | visitNode(node: ts.Node): void;
|
---|
19 | /**
|
---|
20 | * Method that will be called for each source file of the upgrade project. In order to
|
---|
21 | * properly determine invalid constructor signatures, we take advantage of the pre-emit
|
---|
22 | * diagnostics from TypeScript.
|
---|
23 | *
|
---|
24 | * By using the diagnostics, the migration can handle type assignability. Not using
|
---|
25 | * diagnostics would mean that we need to use simple type equality checking which is
|
---|
26 | * too strict. See related issue: https://github.com/Microsoft/TypeScript/issues/9879
|
---|
27 | */
|
---|
28 | private _visitSourceFile;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.