TypeScript/tests/cases/fourslash/extract-method17.ts

11 lines
284 B
TypeScript
Raw Normal View History

2017-08-05 01:10:33 +02:00
/// <reference path='fourslash.ts' />
//// function foo () {
//// var x = 3;
//// var y = /*start*/x++ + 5/*end*/;
//// }
goTo.select('start', 'end')
verify.refactorAvailable('Extract Method', 'scope_0');
verify.not.refactorAvailable('Extract Method', 'scope_1');