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

Method visit

src/simulate/simulate_fusion_call2.cpp:19–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18 struct SimNode_Op2Call2 : SimNode_Op2Fusion {
19 virtual SimNode * visit(SimVisitor & vis) override {
20 V_BEGIN();
21 string name = op;
22 name += "2";
23 name += getSimSourceName(l.type);
24 name += getSimSourceName(r.type);
25 vis.op(name.c_str());
26 if ( fnPtr ) {
27 vis.arg(fnPtr->name,"fnPtr");
28 vis.arg(Func(), fnPtr->mangledName, "fnIndex");
29 }
30 if ( cmresEval ) {
31 V_SUB(cmresEval);
32 }
33 l.visit(vis);
34 r.visit(vis);
35 V_END();
36 }
37 virtual SimNode * copyNode ( Context & context, NodeAllocator * code ) override {
38 SimNode_Op2Call2 * that = (SimNode_Op2Call2 *) SimNode_Op2Fusion::copyNode(context, code);
39 if ( fnPtr ) {

Callers

nothing calls this directly

Calls 5

getSimSourceNameFunction · 0.85
FuncClass · 0.50
opMethod · 0.45
c_strMethod · 0.45
argMethod · 0.45

Tested by

no test coverage detected