MCPcopy
hub / github.com/prettier/prettier / hasSameLocEnd

Function hasSameLocEnd

src/language-js/location/comparison.js:24–27  ·  view source on GitHub ↗

* @param {Node} nodeA * @param {Node} nodeB * @returns {boolean}

(nodeA, nodeB)

Source from the content-addressed store, hash-verified

22 * @returns {boolean}
23 */
24function hasSameLocEnd(nodeA, nodeB) {
25 const nodeAEnd = locEnd(nodeA);
26 return isIndex(nodeAEnd) && nodeAEnd === locEnd(nodeB);
27}
28
29/**
30 * @param {Node} nodeA

Callers 1

hasSameLocFunction · 0.85

Calls 2

locEndFunction · 0.90
isIndexFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…