MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / findExprOrThrow

Function findExprOrThrow

lib/web/tern/tern.js:839–843  ·  view source on GitHub ↗
(file, query, wide)

Source from the content-addressed store, hash-verified

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;

Callers 2

findRefsFunction · 0.85
buildRenameFunction · 0.85

Calls 1

ternErrorFunction · 0.85

Tested by

no test coverage detected