(node, pos)
| 830 | } |
| 831 | |
| 832 | function inBody(node, pos) { |
| 833 | var body = node.body, start, end; |
| 834 | if (!body) return false; |
| 835 | if (Array.isArray(body)) { |
| 836 | start = body[0].start; |
| 837 | end = body[body.length - 1].end; |
| 838 | } else { |
| 839 | start = body.start; |
| 840 | end = body.end; |
| 841 | } |
| 842 | return start <= pos && end >= pos; |
| 843 | } |
| 844 | |
| 845 | var findExpr = exports.findQueryExpr = function(file, query, wide) { |
| 846 | if (query.end == null) throw ternError("missing .query.end field"); |
no outgoing calls
no test coverage detected
searching dependent graphs…