| 177 | } |
| 178 | |
| 179 | Value Type::GetField(int id) const |
| 180 | { |
| 181 | int real_id = id - Object::TypeInstance->GetFieldCount(); |
| 182 | if (real_id < 0) |
| 183 | return Object::GetField(id); |
| 184 | |
| 185 | if (real_id == 0) |
| 186 | return GetName(); |
| 187 | else if (real_id == 1) |
| 188 | return GetPrototype(); |
| 189 | else if (real_id == 2) |
| 190 | return GetBaseType(); |
| 191 | |
| 192 | BOOST_THROW_EXCEPTION(std::runtime_error("Invalid field ID.")); |
| 193 | } |
| 194 | |
| 195 | const std::unordered_set<Type*>& Type::GetLoadDependencies() const |
| 196 | { |
no test coverage detected