| 1296 | // r2v |
| 1297 | |
| 1298 | SimNode * GetR2V ( Context & context, const LineInfo & at, const TypeDeclPtr & type, SimNode * expr ) { |
| 1299 | if ( type->isRefType() ) { |
| 1300 | return expr; |
| 1301 | } else { |
| 1302 | return context.code->makeValueNode<SimNode_Ref2Value>(type->getR2VType(), at, expr); |
| 1303 | } |
| 1304 | } |
| 1305 | |
| 1306 | ExpressionPtr SimulateVisitor::visit(ExprRef2Value * expr) { |
| 1307 | const auto &at = expr->at; |
no test coverage detected