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

Method DirectHash

IDEHelper/Compiler/BfResolvedTypeUtils.cpp:3625–3640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3623}
3624
3625int BfResolvedTypeSet::DirectHash(BfTypeReference* typeRef, LookupContext* ctx, BfHashFlags flags, int hashSeed)
3626{
3627 auto resolvedType = ctx->mModule->ResolveTypeRef(typeRef, BfPopulateType_Identity, GetResolveFlags(typeRef, ctx, flags));
3628 if (resolvedType == NULL)
3629 {
3630 ctx->mFailed = true;
3631 return 0;
3632 }
3633 if (((flags & BfHashFlag_DisallowPointer) != 0) && (resolvedType->IsPointer()))
3634 {
3635 ShowThisPointerWarning(ctx, typeRef);
3636 resolvedType = resolvedType->GetUnderlyingType();
3637 }
3638
3639 return Hash(resolvedType, ctx, BfHashFlag_None, hashSeed);
3640}
3641
3642void BfResolvedTypeSet::ShowThisPointerWarning(LookupContext* ctx, BfTypeReference* typeRef)
3643{

Callers

nothing calls this directly

Calls 4

HashClass · 0.70
ResolveTypeRefMethod · 0.45
IsPointerMethod · 0.45
GetUnderlyingTypeMethod · 0.45

Tested by

no test coverage detected