Files
agency/.pnpm-store/v3/files/a6/855c47424178dc6dee2e947f548957a06ef102ffc6fb598dcbe4cc49f808eb2339e92a1ad6c12b4102c84d79bcf5acc1cf77733e7804ea03e33bc50cf5f62b
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

11 lines
415 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isReferenceToGlobalFunction = isReferenceToGlobalFunction;
function isReferenceToGlobalFunction(calleeName, node, sourceCode) {
const ref = sourceCode
.getScope(node)
.references.find(ref => ref.identifier.name === calleeName);
// ensure it's the "global" version
return !ref?.resolved?.defs.length;
}