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

Method visit

src/simulate/simulate_fusion_if.cpp:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18 struct SimNode_Op1If : SimNode_Op1Fusion {
19 virtual SimNode * visit(SimVisitor & vis) override {
20 V_BEGIN_CR();
21 string name = op;
22 name += getSimSourceName(subexpr.type);
23 if ( baseType != Type::none && baseType != Type::anyArgument ) {
24 vis.op(name.c_str(), getTypeBaseSize(baseType), das_to_string(baseType));
25 } else {
26 vis.op(name.c_str());
27 }
28 subexpr.visit(vis);
29 V_SUB(if_true);
30 if ( if_false ) {
31 V_SUB(if_false);
32 }
33 V_END();
34 }
35 SimNode * if_true, * if_false;
36 };
37

Callers

nothing calls this directly

Calls 5

getSimSourceNameFunction · 0.85
getTypeBaseSizeFunction · 0.85
das_to_stringFunction · 0.85
opMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected