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

Function SelectTypeForGeneric

NULLC/Callbacks.cpp:1156–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156void SelectTypeForGeneric(unsigned nodeIndex)
1157{
1158 if(CodeInfo::nodeList[nodeIndex]->nodeType == typeNodeFuncDef)
1159 currType = ((NodeFuncDef*)CodeInfo::nodeList[nodeIndex])->GetFuncInfo()->funcType;
1160 else if(CodeInfo::nodeList[nodeIndex]->typeInfo->arrLevel && CodeInfo::nodeList[nodeIndex]->typeInfo->arrSize != TypeInfo::UNSIZED_ARRAY && CodeInfo::nodeList[nodeIndex]->nodeType != typeNodeZeroOp)
1161 currType = CodeInfo::GetArrayType(CodeInfo::nodeList[nodeIndex]->typeInfo->subType, TypeInfo::UNSIZED_ARRAY);
1162 else
1163 currType = CodeInfo::nodeList[nodeIndex]->typeInfo;
1164}
1165
1166void SelectTypeByIndex(unsigned int index)
1167{

Callers 3

GetCurrentArgumentTypeFunction · 0.85
GetGenericFunctionRatingFunction · 0.85
ParseFunctionVariablesFunction · 0.85

Calls 1

GetFuncInfoMethod · 0.80

Tested by

no test coverage detected