Files
TypeScript/tests/cases/fourslash
Andrew Casey 568c8a3298 Allow extraction of variable decls used outside the extracted range
If there are only declarations, use the new function as the initializer
for a destructuring declaration.

If there are declarations and writes, changes all of the `const`
declarations to `let` and add `| undefined` onto any explicit types.
Use destructuring assignment to accomplish both "initialization" and
writes.

I don't believe there is a case where there are both declarations and a
return (since the declarations wouldn't be available after the return).

UNDONE: this could probably be generalized to handle binding patterns
but,
for now, only identifiers are supported.

Fixes #18242
Fixes #18855
2017-10-11 16:38:38 -07:00
..
2017-05-31 17:18:36 -07:00
2017-06-29 15:14:09 -07:00
2017-06-19 14:22:56 -07:00
2017-08-15 12:44:21 -07:00
2017-06-19 11:13:58 -07:00
2017-05-22 16:48:45 -07:00
2017-06-14 21:41:19 -07:00
2017-06-14 21:41:19 -07:00
2017-06-19 16:18:42 -07:00
2017-08-16 17:36:50 -07:00
2017-09-22 16:21:31 -07:00
2017-05-15 14:45:30 -07:00
2017-05-29 21:48:43 -07:00
2017-09-09 12:52:10 -07:00
2017-09-09 12:52:10 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 19:22:29 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00
2017-06-08 18:59:30 -07:00