49 {
52 switch(type.kind)
53 {
55 {
56 auto keyValue = Singleton::get().functionMap.find(decoratedName);
57 result = keyValue == Singleton::get().functionMap.end() ? nullptr : asObject(keyValue->second->function);
58 break;
59 }
61 {
62 result = nullptr;
63 break;
64 }
66 {
67 result = nullptr;
68 break;
69 }
71 {
72 result = nullptr;
73 break;
74 }
76 };
77 if(result && !
isA(result,type)) { result =
nullptr; }
78 return result;
79 }
std::string getDecoratedName(const std::string &name, const IR::ObjectType &type)
RUNTIME_API bool isA(ObjectInstance *object, const IR::ObjectType &type)