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

Function isPosition

lib/web/tern/tern.js:533–536  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

531 // Query helpers
532
533 function isPosition(val) {
534 return typeof val == "number" || typeof val == "object" &&
535 typeof val.line == "number" && typeof val.ch == "number";
536 }
537
538 // Baseline query document validation
539 function invalidDoc(doc) {

Callers 1

invalidDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected