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

Function isPosition

lib/tern.js:540–543  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

538 // Query helpers
539
540 function isPosition(val) {
541 return typeof val == "number" || typeof val == "object" &&
542 typeof val.line == "number" && typeof val.ch == "number";
543 }
544
545 // Baseline query document validation
546 function invalidDoc(doc) {

Callers 1

invalidDocFunction · 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…