MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetDereferenceType

Method GetDereferenceType

NULLC/CodeInfo.cpp:27–35  ·  view source on GitHub ↗

Function returns type that reference points to

Source from the content-addressed store, hash-verified

25
26// Function returns type that reference points to
27TypeInfo* 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
38TypeInfo* CodeInfo::GetArrayType(TypeInfo* type, unsigned int sizeInArgument)

Callers

nothing calls this directly

Calls 2

ThrowErrorFunction · 0.85
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected