| 1093 | }; |
| 1094 | |
| 1095 | class BfModuleMethodInstance |
| 1096 | { |
| 1097 | public: |
| 1098 | BfMethodInstance* mMethodInstance; |
| 1099 | BfIRValue mFunc; |
| 1100 | |
| 1101 | public: |
| 1102 | BfModuleMethodInstance() |
| 1103 | { |
| 1104 | mMethodInstance = NULL; |
| 1105 | } |
| 1106 | |
| 1107 | BfModuleMethodInstance(BfMethodInstance* methodInstance); |
| 1108 | |
| 1109 | BfModuleMethodInstance(BfMethodInstance* methodInstance, BfIRValue func) : mFunc(func) |
| 1110 | { |
| 1111 | mMethodInstance = methodInstance; |
| 1112 | } |
| 1113 | |
| 1114 | operator bool() const |
| 1115 | { |
| 1116 | return mMethodInstance != NULL; |
| 1117 | } |
| 1118 | }; |
| 1119 | |
| 1120 | // The way these work is a bit nuanced |
| 1121 | // When we use these as keys, we allow collisions between genericParams from different type and |
no outgoing calls
no test coverage detected