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

Function pointInProp

lib/tern.js:673–679  ·  view source on GitHub ↗
(objNode, point)

Source from the content-addressed store, hash-verified

671 }
672
673 function pointInProp(objNode, point) {
674 for (var i = 0; i < objNode.properties.length; i++) {
675 var curProp = objNode.properties[i];
676 if (curProp.key && curProp.key.start <= point && curProp.key.end >= point)
677 return curProp;
678 }
679 }
680
681 var jsKeywords = ("break do instanceof typeof case else new var " +
682 "catch finally return void continue for switch while debugger " +

Callers 2

findCompletionsFunction · 0.85
findExprTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…