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

Function getAlternateKeyObjects

tools/eslint-rules/no-keyobject-public-accessors.js:129–138  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

127 }
128
129 function getAlternateKeyObjects(test) {
130 const names = new Set();
131 if (test?.type === 'UnaryExpression' &&
132 test.operator === '!' &&
133 isIsKeyObjectCall(test.argument)) {
134 names.add(getIdentifierArgument(test.argument));
135 }
136 names.delete(undefined);
137 return names;
138 }
139
140 function isKeyObjectFactory(node) {
141 if (node?.type === 'NewExpression' &&

Callers 2

isInKeyObjectBranchFunction · 0.85

Calls 4

isIsKeyObjectCallFunction · 0.85
getIdentifierArgumentFunction · 0.70
addMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…