| 10 | : Type(Type), Value(Value) {} |
| 11 | |
| 12 | std::string ASTValueData::getAsString(VType Type) const { |
| 13 | |
| 14 | switch (Type) { |
| 15 | case VType_INT: |
| 16 | return "INT"; |
| 17 | case VType_FLOAT: |
| 18 | return "FLOAT"; |
| 19 | case VType_STRING: |
| 20 | return "STRING"; |
| 21 | case VType_ARRAY: |
| 22 | return "ARRAY"; |
| 23 | default: |
| 24 | assert(false && "Unexpected Program State"); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | bool ASTValueData::operator==(const ASTValueData &Rhs) const { |
| 29 |
no outgoing calls
no test coverage detected