MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / assertInternal

Function assertInternal

website/public/wasm/web-tree-sitter.js:115–117  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

113var ZERO_POINT = { row: 0, column: 0 };
114var INTERNAL = /* @__PURE__ */ Symbol("INTERNAL");
115function assertInternal(x) {
116 if (x !== INTERNAL) throw new Error("Illegal constructor");
117}
118__name(assertInternal, "assertInternal");
119function isPoint(point) {
120 return !!point && typeof point.row === "number" && typeof point.column === "number";

Callers 9

constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected