| 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 |
nothing calls this directly
no test coverage detected