MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / cannotCall

Function cannotCall

src/resolution/ruby-parameter-flow.ts:631–639  ·  view source on GitHub ↗
(site, signature)

Source from the content-addressed store, hash-verified

629 },
630
631 cannotCall(site, signature) {
632 // A class named as the receiver was asked for a method of its own, so
633 // no instance's is reached. A constant holding a value may be anything.
634 if (site.receiver !== null && CONSTANT_PATH.test(site.receiver) &&
635 !context.getNodesByName(site.receiver.slice(site.receiver.lastIndexOf(':') + 1))
636 .some((n) => n.language === 'ruby' && (n.kind === 'constant' || n.kind === 'variable'))) return true;
637 const args = argumentsAt(site);
638 return args !== null && !signature.accepts(args);
639 },
640
641 signature: signatureOf,
642

Callers

nothing calls this directly

Calls 3

acceptsMethod · 0.80
argumentsAtFunction · 0.70
getNodesByNameMethod · 0.65

Tested by

no test coverage detected