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

Function getConsequentKeyObjects

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

Source from the content-addressed store, hash-verified

111 }
112
113 function getConsequentKeyObjects(test) {
114 const names = new Set();
115 if (isIsKeyObjectCall(test)) {
116 names.add(getIdentifierArgument(test));
117 } else if (test?.type === 'LogicalExpression' && test.operator === '&&') {
118 for (const name of getConsequentKeyObjects(test.left)) {
119 names.add(name);
120 }
121 for (const name of getConsequentKeyObjects(test.right)) {
122 names.add(name);
123 }
124 }
125 names.delete(undefined);
126 return names;
127 }
128
129 function getAlternateKeyObjects(test) {
130 const names = new Set();

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…