function forEachReturnStatement(body, visitor) {
        return traverse(body);
        function traverse(node) {
            switch (node.kind) {
                case 204 /* ReturnStatement */:
                    return visitor(node);
                case 220 /* CaseBlock */:
                case 192 /* Block */:
                case 196 /* IfStatement */:
                case 197 /* DoStatement */:
                case 198 /* WhileStatement */:
                case 199 /* ForStatement */:
                case 200 /* ForInStatement */:
                case 201 /* ForOfStatement */:
                case 205 /* WithStatement */:
                case 206 /* SwitchStatement */:
                case 241 /* CaseClause */:
                case 242 /* DefaultClause */:
                case 207 /* LabeledStatement */:
                case 209 /* TryStatement */:
                case 244 /* CatchClause */:
                    return ts.forEachChild(node, traverse);
            }
        }
    }
function forEachReturnStatement(body, visitor) {
        return traverse(body);
        function traverse(node) {
            switch (node.kind) {
                case 204 :
                    return visitor(node);
                case 220 :
                case 192 :
                case 196 :
                case 197 :
                case 198 :
                case 199 :
                case 200 :
                case 201 :
                case 205 :
                case 206 :
                case 241 :
                case 242 :
                case 207 :
                case 209 :
                case 244 :
                    return ts.forEachChild(node, traverse);
            }
        }
    }
function forEachReturnStatement ( body , visitor ) { return traverse ( body ) ; function traverse ( node ) { switch ( node . kind ) { case 204 /* ReturnStatement */ : return visitor ( node ) ; case 220 /* CaseBlock */ : case 192 /* Block */ : case 196 /* IfStatement */ : case 197 /* DoStatement */ : case 198 /* WhileStatement */ : case 199 /* ForStatement */ : case 200 /* ForInStatement */ : case 201 /* ForOfStatement */ : case 205 /* WithStatement */ : case 206 /* SwitchStatement */ : case 241 /* CaseClause */ : case 242 /* DefaultClause */ : case 207 /* LabeledStatement */ : case 209 /* TryStatement */ : case 244 /* CatchClause */ : return ts . forEachChild ( node , traverse ) ; } } }
Warning: This has the same semantics as the forEach family of functions, in that traversal terminates in the event that 'visitor' supplies a truthy value.
Warning : This has the same semantics as the forEach family of functions in that traversal terminates in the event that visitor supplies a truthy value .