2018-05-17 04:18:20 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// class A {
|
|
|
|
//// /*a*/public/*b*/ /*c*/a/*d*/ = () => {
|
|
|
|
//// /*e*/return/*f*/ /*g*/1/*h*/;
|
|
|
|
//// }
|
|
|
|
//// /*i*/b/*j*/: /*k*/number/*l*/ = /*m*/1/*n*/
|
2018-05-18 04:07:45 +02:00
|
|
|
//// /*o*/public /*p*/ c: number = 1; /*q*/
|
|
|
|
//// /*r*/d = 1
|
|
|
|
//// /*s*/public e/*t*/ = /*u*/ 1
|
|
|
|
//// f = 1/*v*/ /*w*/
|
|
|
|
//// g = 1/*x*/
|
2018-05-17 04:18:20 +02:00
|
|
|
//// };
|
|
|
|
|
|
|
|
goTo.select("a", "b");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
2018-05-17 04:18:20 +02:00
|
|
|
|
|
|
|
goTo.select("c", "d");
|
|
|
|
verify.refactorAvailable("Generate 'get' and 'set' accessors");
|
|
|
|
|
|
|
|
goTo.select("e", "f");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
2018-05-17 04:18:20 +02:00
|
|
|
|
|
|
|
goTo.select("g", "h");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
2018-05-17 04:18:20 +02:00
|
|
|
|
|
|
|
goTo.select("i", "j");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
2018-05-17 04:18:20 +02:00
|
|
|
|
|
|
|
goTo.select("k", "l");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
2018-05-17 04:18:20 +02:00
|
|
|
|
|
|
|
goTo.select("m", "n");
|
2018-05-18 04:07:45 +02:00
|
|
|
verify.not.refactorAvailable();
|
|
|
|
|
|
|
|
goTo.select("o", "p");
|
|
|
|
verify.not.refactorAvailable();
|
|
|
|
|
|
|
|
goTo.select("q", "r");
|
|
|
|
verify.not.refactorAvailable();
|
|
|
|
|
|
|
|
goTo.select("s", "t");
|
|
|
|
verify.refactorAvailable("Generate 'get' and 'set' accessors");
|
|
|
|
|
|
|
|
goTo.select("u", "v");
|
|
|
|
verify.not.refactorAvailable();
|
|
|
|
|
|
|
|
goTo.select("w", "x");
|
|
|
|
verify.refactorAvailable("Generate 'get' and 'set' accessors");
|