15 lines
360 B
TypeScript
15 lines
360 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
////function bar(fn: () => void) {}
|
||
|
////
|
||
|
////class Foo {
|
||
|
//// x: number;
|
||
|
//// foo() {
|
||
|
//// /*start*/bar(() => { this.x });/*end*/
|
||
|
//// }
|
||
|
////}
|
||
|
|
||
|
goTo.select("start", "end");
|
||
|
verify.refactorAvailable("Extract Symbol", "function_scope_1");
|
||
|
verify.not.refactorAvailable("Extract Symbol", "function_scope_2");
|