* If `scope` contains a function after `minPos`, then return the first such function. * Otherwise, return `undefined`.
(minPos, scope)
| 161203 | * Otherwise, return `undefined`. |
| 161204 | */ |
| 161205 | function getNodeToInsertFunctionBefore(minPos, scope) { |
| 161206 | return ts.find(getStatementsOrClassElements(scope), function (child) { |
| 161207 | return child.pos >= minPos && ts.isFunctionLikeDeclaration(child) && !ts.isConstructorDeclaration(child); |
| 161208 | }); |
| 161209 | } |
| 161210 | function getNodeToInsertPropertyBefore(maxPos, scope) { |
| 161211 | var members = scope.members; |
| 161212 | ts.Debug.assert(members.length > 0, "Found no members"); // There must be at least one child, since we extracted from one. |
no test coverage detected
searching dependent graphs…