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

Method CanCast

IDEHelper/Compiler/BfModuleTypeUtils.cpp:13208–13214  ·  view source on GitHub ↗

This flow should mirror CastToValue

Source from the content-addressed store, hash-verified

13206
13207// This flow should mirror CastToValue
13208bool BfModule::CanCast(BfTypedValue typedVal, BfType* toType, BfCastFlags castFlags)
13209{
13210 BP_ZONE("BfModule::CanCast");
13211
13212 SetAndRestoreValue<bool> prevIgnoreWrites(mBfIRBuilder->mIgnoreWrites, true);
13213 return CastToValue(NULL, typedVal, toType, (BfCastFlags)(castFlags | BfCastFlags_SilentFail | BfCastFlags_IsCastCheck));
13214}
13215
13216bool BfModule::AreSplatsCompatible(BfType* fromType, BfType* toType, bool* outNeedsMemberCasting)
13217{

Callers 11

AddExtensionMethodsMethod · 0.45
InferGenericArgumentMethod · 0.45
CompareMethodsMethod · 0.45
CheckMethodMethod · 0.45
VisitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected