(file, query, wide)
| 837 | }; |
| 838 | |
| 839 | function findExprOrThrow(file, query, wide) { |
| 840 | var expr = findExpr(file, query, wide); |
| 841 | if (expr) return expr; |
| 842 | throw ternError("No expression at the given position."); |
| 843 | } |
| 844 | |
| 845 | function ensureObj(tp) { |
| 846 | if (!tp || !(tp = tp.getType()) || !(tp instanceof infer.Obj)) return null; |
no test coverage detected