MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / GetR2V

Function GetR2V

src/ast/ast_simulate.cpp:1298–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 2

visitMethod · 0.85
simulateGetAtR2VMethod · 0.85

Calls 2

getR2VTypeMethod · 0.80
isRefTypeMethod · 0.45

Tested by

no test coverage detected