MCPcopy Create free account
hub / github.com/beefytech/Beef / FixIntUnknown

Method FixIntUnknown

IDEHelper/Compiler/BfModuleTypeUtils.cpp:8134–8145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8132}
8133
8134BfType* BfModule::FixIntUnknown(BfType* type)
8135{
8136 if ((type != NULL) && (type->IsPrimitiveType()))
8137 {
8138 auto primType = (BfPrimitiveType*)type;
8139 if (primType->mTypeDef->mTypeCode == BfTypeCode_IntUnknown)
8140 return GetPrimitiveType(BfTypeCode_IntPtr);
8141 if (primType->mTypeDef->mTypeCode == BfTypeCode_UIntUnknown)
8142 return GetPrimitiveType(BfTypeCode_UIntPtr);
8143 }
8144 return type;
8145}
8146
8147void BfModule::FixIntUnknown(BfTypedValue& typedVal, BfType* matchType)
8148{

Callers 12

ResolveMethod · 0.80
CompareMethodsMethod · 0.80
CheckMethodMethod · 0.80
EvaluateMethod · 0.80
GetSelectedMethodMethod · 0.80
InjectMixinMethod · 0.80
VisitMethod · 0.80
PerformAssignmentMethod · 0.80
DoEvaluateMethod · 0.80

Calls 9

IsPrimitiveTypeMethod · 0.45
IsConstMethod · 0.45
GetConstantMethod · 0.45
IsIntMethod · 0.45
ToPrimitiveTypeMethod · 0.45
CreateNumericCastMethod · 0.45
IsSignedMethod · 0.45
IsIntUnknownMethod · 0.45
IsIntegerMethod · 0.45

Tested by

no test coverage detected