MCPcopy Index your code
hub / github.com/nodejs/node / isIsKeyObjectCall

Function isIsKeyObjectCall

tools/eslint-rules/no-keyobject-public-accessors.js:96–111  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

94 const knownKeyObjectClassNames = new Set(keyObjectClassNames);
95
96 function isIsKeyObjectCall(node) {
97 if (node?.type !== 'CallExpression') return false;
98
99 if (node.callee.type === 'Identifier') {
100 return isKeyObjectNames.has(node.callee.name);
101 }
102
103 if (node.callee.type === 'MemberExpression' &&
104 !node.callee.computed &&
105 node.callee.object.type === 'Identifier' &&
106 namespaceNames.has(node.callee.object.name)) {
107 return node.callee.property.name === 'isKeyObject';
108 }
109
110 return false;
111 }
112
113 function getConsequentKeyObjects(test) {
114 const names = new Set();

Callers 2

getConsequentKeyObjectsFunction · 0.85
getAlternateKeyObjectsFunction · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…