Function returns type that reference points to
| 25 | |
| 26 | // Function returns type that reference points to |
| 27 | TypeInfo* CodeInfo::GetDereferenceType(TypeInfo* type) |
| 28 | { |
| 29 | // If it's not a reference, or a reference to an invalid type, return error |
| 30 | if(!type->subType || type->refLevel == 0) |
| 31 | ThrowError(lastKnownStartPos, "ERROR: cannot dereference type '%s' - there is no result type available", type->GetFullTypeName()); |
| 32 | |
| 33 | // Return type |
| 34 | return type->subType; |
| 35 | } |
| 36 | |
| 37 | // Function returns type that is an array for passed type |
| 38 | TypeInfo* CodeInfo::GetArrayType(TypeInfo* type, unsigned int sizeInArgument) |
nothing calls this directly
no test coverage detected