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

Function isPromiseAllCallArg

tools/eslint-rules/must-call-assert.js:17–22  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

15 ['keys', 'entries'].includes(node.callee.property.name);
16
17const isPromiseAllCallArg = (node) =>
18 node.parent?.type === 'CallExpression' &&
19 node.parent.callee.type === 'MemberExpression' &&
20 node.parent.callee.object.type === 'Identifier' && node.parent.callee.object.name === 'Promise' &&
21 node.parent.callee.property.type === 'Identifier' && node.parent.callee.property.name === 'all' &&
22 node.parent.arguments.length === 1 && node.parent.arguments[0] === node;
23
24function findEnclosingFunction(node) {
25 while (true) {

Callers 1

findEnclosingFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected