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

Function jumpBack

lib/web/CodeMirror/addon/tern/tern.js:405–409  ·  view source on GitHub ↗
(ts, cm)

Source from the content-addressed store, hash-verified

403 }
404
405 function jumpBack(ts, cm) {
406 var pos = ts.jumpStack.pop(), doc = pos && ts.docs[pos.file];
407 if (!doc) return;
408 moveTo(ts, findDoc(ts, cm.getDoc()), doc, pos.start, pos.end);
409 }
410
411 function moveTo(ts, curDoc, doc, start, end) {
412 doc.doc.setSelection(start, end);

Callers 1

tern.jsFile · 0.85

Calls 3

moveToFunction · 0.85
findDocFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected