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

Function atInterestingExpression

lib/web/CodeMirror/addon/tern/tern.js:450–454  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

448 }
449
450 function atInterestingExpression(cm) {
451 var pos = cm.getCursor("end"), tok = cm.getTokenAt(pos);
452 if (tok.start < pos.ch && tok.type == "comment") return false;
453 return /[\w)\]]/.test(cm.getLine(pos.line).slice(Math.max(pos.ch - 1, 0), pos.ch + 1));
454 }
455
456 // Variable renaming
457

Callers 1

jumpToDefFunction · 0.85

Calls 3

getLineMethod · 0.65
testMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected