MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / CastExpr

Method CastExpr

src/hx/cppia/Cppia.cpp:1148–1157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146 TypeData *typeData;
1147
1148 CastExpr(CppiaStream &stream,CastOp inOp)
1149 {
1150 op = inOp;
1151 typeId = 0;
1152 typeData = 0;
1153 if (op==castDataArray || op==castInstance)
1154 typeId = stream.getInt();
1155
1156 value = createCppiaExpr(stream);
1157 }
1158 ExprType getType() HXCPP_OVERRIDE {
1159 return op==castInt || op==castBool ? etInt :
1160 op==castFloat ? etFloat :

Callers

nothing calls this directly

Calls 2

createCppiaExprFunction · 0.85
getIntMethod · 0.45

Tested by

no test coverage detected