TypeScript/tests/cases/fourslash/extract-method3.ts
2017-08-04 16:10:33 -07:00

19 lines
485 B
TypeScript

/// <reference path='fourslash.ts' />
//// namespace NS {
//// class Q {
//// foo() {
//// console.log('100');
//// const m = 10, j = "hello", k = {x: "what"};
//// const q = /*a*/m/*b*/;
//// }
//// }
//// }
// Don't offer to to 'extract method' a single identifier
goTo.marker('a');
verify.not.refactorAvailable('Extract Method');
goTo.select('a', 'b');
verify.not.refactorAvailable('Extract Method');