2017-08-05 01:10:33 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// Cannot extract globally-declared functions or
|
|
|
|
// those with non-selected local references
|
|
|
|
|
|
|
|
//// /*f1a*/function f() {
|
|
|
|
//// /*g1a*/function g() { }
|
|
|
|
//// g();/*g1b*/
|
|
|
|
//// g();
|
|
|
|
//// }/*f1b*/
|
|
|
|
|
|
|
|
goTo.select('f1a', 'f1b');
|
2017-09-15 01:04:44 +02:00
|
|
|
verify.not.refactorAvailable('Extract Symbol');
|
2017-08-05 01:10:33 +02:00
|
|
|
goTo.select('g1a', 'g1b');
|
2017-09-15 01:04:44 +02:00
|
|
|
verify.not.refactorAvailable('Extract Symbol');
|
2017-08-05 01:10:33 +02:00
|
|
|
|