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

Method SwitchExpr

src/hx/cppia/Cppia.cpp:6150–6163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6148
6149
6150 SwitchExpr(CppiaStream &stream)
6151 {
6152 caseCount = stream.getInt();
6153 bool hasDefault = stream.getInt();
6154 condition = createCppiaExpr(stream);
6155 cases.resize(caseCount);
6156 for(int i=0;i<caseCount;i++)
6157 {
6158 int count = stream.getInt();
6159 ReadExpressions(cases[i].conditions,stream,count);
6160 cases[i].body = createCppiaExpr(stream);
6161 }
6162 defaultCase = hasDefault ? createCppiaExpr(stream) : 0;
6163 }
6164
6165 const char *getName() HXCPP_OVERRIDE { return "SwitchExpr"; }
6166 CppiaExpr *link(CppiaModule &inModule) HXCPP_OVERRIDE

Callers

nothing calls this directly

Calls 3

createCppiaExprFunction · 0.85
ReadExpressionsFunction · 0.85
getIntMethod · 0.45

Tested by

no test coverage detected