MCPcopy Index your code
hub / github.com/ternjs/tern / findExprOrThrow

Function findExprOrThrow

lib/tern.js:883–887  ·  view source on GitHub ↗
(file, query, wide)

Source from the content-addressed store, hash-verified

881 }
882
883 function findExprOrThrow(file, query, wide) {
884 var expr = findExpr(file, query, wide);
885 if (expr) return expr;
886 throw ternError("No expression at the given position.");
887 }
888
889 function ensureObj(tp) {
890 if (!tp || !(tp = tp.getType()) || !(tp instanceof infer.Obj)) return null;

Callers 2

findRefsFunction · 0.85
buildRenameFunction · 0.85

Calls 1

ternErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…