Skip to content

Commit b082c27

Browse files
committed
Test:jsdoc codefix for variable-like declarations
1 parent 16ccb66 commit b082c27

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @strict: true
2+
/// <reference path='fourslash.ts' />
3+
//// function f(x: [|number?|]) {
4+
//// }
5+
verify.rangeAfterCodeFix("number | null", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @strict: true
2+
/// <reference path='fourslash.ts' />
3+
//// var f = function f(x: [|string?|]) {
4+
//// }
5+
verify.rangeAfterCodeFix("string | null | undefined", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 1);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @strict: true
2+
/// <reference path='fourslash.ts' />
3+
////class C {
4+
//// p: [|*|]
5+
////}
6+
verify.rangeAfterCodeFix("any", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// @strict: true
2+
/// <reference path='fourslash.ts' />
3+
////class C {
4+
//// p: [|*|] = 12
5+
////}
6+
verify.rangeAfterCodeFix("any", /*includeWhiteSpace*/ false, /*errorCode*/ 8020, 0);

0 commit comments

Comments
 (0)