| 1236 | std::shared_ptr<Expression> index; |
| 1237 | public: |
| 1238 | SubscriptExpr(const Location & loc, std::shared_ptr<Expression> && b, std::shared_ptr<Expression> && i) |
| 1239 | : Expression(loc), base(std::move(b)), index(std::move(i)) {} |
| 1240 | Value do_evaluate(const std::shared_ptr<Context> & context) const override { |
| 1241 | if (!base) throw std::runtime_error("SubscriptExpr.base is null"); |
| 1242 | if (!index) throw std::runtime_error("SubscriptExpr.index is null"); |
nothing calls this directly
no outgoing calls
no test coverage detected