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

Function getCallBase

src/ast/ast_simulate.cpp:341–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 // common for move and copy
340
341 SimNode_CallBase * getCallBase ( SimNode * node ) {
342#if DAS_ENABLE_KEEPALIVE
343 if ( node->rtti_node_isKeepAlive() ) {
344 SimNode_KeepAlive * ka = static_cast<SimNode_KeepAlive *>(node);
345 node = ka->value;
346 }
347#endif
348 DAS_ASSERTF(node->rtti_node_isCallBase(),"we are calling getCallBase on a node, which is not a call base node."
349 "we should not be here, script compiler should have caught this during compilation.");
350 return static_cast<SimNode_CallBase *>(node);
351 }
352
353 SimNode * SimulateVisitor::sv_makeLocalCMResMove (const LineInfo & at, uint32_t offset, ExpressionPtr rE ) {
354 const auto & rightType = *rE->type;

Callers 10

sv_makeLocalCMResMoveMethod · 0.85
sv_makeLocalCMResCopyMethod · 0.85
sv_makeLocalRefMoveMethod · 0.85
sv_makeLocalRefCopyMethod · 0.85
sv_makeLocalMoveMethod · 0.85
sv_makeLocalCopyMethod · 0.85
sv_makeCopyMethod · 0.85
sv_makeMoveMethod · 0.85
visitMethod · 0.85
sv_simulateLetInitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected