MCPcopy Create free account
hub / github.com/nodejs/node / isNodeWithin

Function isNodeWithin

tools/eslint-rules/no-keyobject-public-accessors.js:52–55  ·  view source on GitHub ↗
(node, ancestor)

Source from the content-addressed store, hash-verified

50}
51
52function isNodeWithin(node, ancestor) {
53 return node.range[0] >= ancestor.range[0] &&
54 node.range[1] <= ancestor.range[1];
55}
56
57function exits(statement) {
58 if (!statement) return false;

Callers 1

isInKeyObjectBranchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected