mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 10:00:13 -06:00
fix some indices
This commit is contained in:
parent
fbf6737ae2
commit
dc363f10fc
@ -1,9 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/ex/*a2*/port def/*a3*//*b3*/ault functio/*b2*/n f() {}/*b1*/
|
||||
/////*1a*/ex/*2a*/port def/*3a*//*3b*/ault functio/*2b*/n f() {}/*1b*/
|
||||
|
||||
// verify that the refactor is offered for full, partial, and empty spans.
|
||||
for (const m of ["1", "2", "3"]) {
|
||||
goTo.select("a" + m, "b" + m);
|
||||
goTo.select(m + "a", m + "b");
|
||||
verify.refactorAvailableForTriggerReason("invoked", "Convert export", "Convert default export to named export");
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/ex/*a2*/port f/*a3*//*b3*/unctio/*b2*/n f() {}/*b1*/
|
||||
/////*1a*/ex/*2a*/port f/*3a*//*3b*/unctio/*2b*/n f() {}/*1b*/
|
||||
|
||||
// verify that the refactor is offered for full, partial, and empty spans.
|
||||
for (const m of ["1", "2", "3"]) {
|
||||
goTo.select("a" + m, "b" + m);
|
||||
goTo.select(m + "a", m + "b");
|
||||
verify.refactorAvailableForTriggerReason("invoked", "Convert export", "Convert named export to default export");
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/im/*a2*/port { /*a3*//*b3*/x, y as z, T } fro/*b2*/m "m";/*b1*/
|
||||
/////*1a*/im/*2a*/port { /*3a*//*3b*/x, y as z, T } fro/*2b*/m "m";/*1b*/
|
||||
|
||||
// verify that the refactor is offered for full, partial, and empty spans.
|
||||
for (const m of ["1", "2", "3"]) {
|
||||
goTo.select("a" + m, "b" + m);
|
||||
goTo.select(m + "a", m + "b");
|
||||
verify.refactorAvailableForTriggerReason("invoked", "Convert import", "Convert named imports to namespace import");
|
||||
}
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/im/*a2*/port * as /*a3*//*b3*/m from "m/*b2*/";/*b1*/
|
||||
/////*1a*/im/*2a*/port * as /*3a*//*3b*/m from "m/*2b*/";/*1b*/
|
||||
|
||||
// verify that the refactor is offered for full, partial, and empty spans.
|
||||
for (const m of ["1", "2", "3"]) {
|
||||
goTo.select("a" + m, "b" + m);
|
||||
goTo.select(m + "a", m + "b");
|
||||
verify.refactorAvailableForTriggerReason("invoked","Convert import", "Convert namespace import to named imports");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user