| 511 | } |
| 512 | |
| 513 | virtual bool hasInterface(const std::string& name) const { |
| 514 | |
| 515 | for (const_iterator it=begin(); it != end(); ++it) { |
| 516 | if (it->name() == kInterfacesAttribute) { |
| 517 | return it->hasParameter(name); // #nocov |
| 518 | } |
| 519 | } |
| 520 | |
| 521 | // if there's no interfaces attrbute we default to R |
| 522 | if (name == kInterfaceR) |
| 523 | return true; |
| 524 | else |
| 525 | return false; |
| 526 | } |
| 527 | |
| 528 | // Was a package init function found? |
| 529 | bool hasPackageInit() const { |
no test coverage detected