MCPcopy Create free account
hub / github.com/Samsung/UTopia / getAsString

Method getAsString

lib/constantanalysis/ASTValue.cpp:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 : Type(Type), Value(Value) {}
11
12std::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
28bool ASTValueData::operator==(const ASTValueData &Rhs) const {
29

Callers 2

ASTValue.cppFile · 0.45
getValueAsRealMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected