| 697 | } |
| 698 | |
| 699 | modelicaParser::EquationContext* ConnectClauseImpl::equationContext() const { |
| 700 | auto* parentCtx = ctx() ? ctx()->parent : nullptr; |
| 701 | while (parentCtx) { |
| 702 | if (auto* equationCtx = dynamic_cast<modelicaParser::EquationContext*>(parentCtx)) { |
| 703 | return equationCtx; |
| 704 | } |
| 705 | parentCtx = parentCtx->parent; |
| 706 | } |
| 707 | return nullptr; |
| 708 | } |
| 709 | |
| 710 | //std::vector<ComponentDeclaration> ComponentClause::componentDeclarations() { |
| 711 | // std::vector<ComponentDeclaration> result; |