* Produces a range that spans the entirety of nodes, given a selection * that might start/end in the middle of nodes. * * For example, when the user makes a selection like this * v---v * var someThing = foo + bar;
(targetRange, sourceFile)
| 161283 | * this returns ^-------^ |
| 161284 | */ |
| 161285 | function getEnclosingTextRange(targetRange, sourceFile) { |
| 161286 | return isReadonlyArray(targetRange.range) |
| 161287 | ? { pos: ts.first(targetRange.range).getStart(sourceFile), end: ts.last(targetRange.range).getEnd() } |
| 161288 | : targetRange.range; |
| 161289 | } |
| 161290 | var Usage; |
| 161291 | (function (Usage) { |
| 161292 | // value should be passed to extracted method |
no test coverage detected
searching dependent graphs…