2017-08-05 01:10:33 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// You cannot extract an exported function declaration
|
|
|
|
|
|
|
|
//// namespace ns {
|
|
|
|
//// /*a*/export function fn() {
|
2017-09-15 01:04:44 +02:00
|
|
|
////
|
2017-08-05 01:10:33 +02:00
|
|
|
//// }
|
|
|
|
//// fn();
|
|
|
|
//// /*b*/
|
|
|
|
//// }
|
|
|
|
|
|
|
|
goTo.select('a', 'b');
|
2017-09-15 01:04:44 +02:00
|
|
|
verify.not.refactorAvailable("Extract Symbol");
|
2017-08-05 01:10:33 +02:00
|
|
|
edit.deleteAtCaret('export'.length);
|
|
|
|
goTo.select('a', 'b');
|
2017-09-15 01:04:44 +02:00
|
|
|
verify.refactorAvailable("Extract Symbol", 'function_scope_0');
|