Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
19 lines
479 B
Plaintext
19 lines
479 B
Plaintext
'use strict'
|
|
|
|
/**
|
|
* @param {string} objectName
|
|
* @param {Node} node
|
|
* @returns {node is CallExpression}
|
|
*/
|
|
function isMemberCallWithObjectName(objectName, node) {
|
|
return (
|
|
node.type === 'CallExpression' &&
|
|
node.callee.type === 'MemberExpression' &&
|
|
((node.callee.object.type === 'Identifier' &&
|
|
node.callee.object.name === objectName) ||
|
|
isMemberCallWithObjectName(objectName, node.callee.object))
|
|
)
|
|
}
|
|
|
|
module.exports = isMemberCallWithObjectName
|