(node, cb)
| 135902 | } |
| 135903 | // Do not cross function/class/interface/module/type boundaries. |
| 135904 | function traverseWithoutCrossingFunction(node, cb) { |
| 135905 | cb(node); |
| 135906 | if (!ts.isFunctionLike(node) && !ts.isClassLike(node) && !ts.isInterfaceDeclaration(node) && !ts.isModuleDeclaration(node) && !ts.isTypeAliasDeclaration(node) && !ts.isTypeNode(node)) { |
| 135907 | ts.forEachChild(node, function (child) { return traverseWithoutCrossingFunction(child, cb); }); |
| 135908 | } |
| 135909 | } |
| 135910 | function getIfElseOccurrences(ifStatement, sourceFile) { |
| 135911 | var keywords = getIfElseKeywords(ifStatement, sourceFile); |
| 135912 | var result = []; |
no test coverage detected