(site, signature)
| 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 |
nothing calls this directly
no test coverage detected