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

Function pointInProp

lib/web/tern/tern.js:646–652  ·  view source on GitHub ↗
(objNode, point)

Source from the content-addressed store, hash-verified

644 }
645
646 function pointInProp(objNode, point) {
647 for (var i = 0; i < objNode.properties.length; i++) {
648 var curProp = objNode.properties[i];
649 if (curProp.key.start <= point && curProp.key.end >= point)
650 return curProp;
651 }
652 }
653
654 var jsKeywords = ("break do instanceof typeof case else new var " +
655 "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