| 3623 | } |
| 3624 | |
| 3625 | int 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 | |
| 3642 | void BfResolvedTypeSet::ShowThisPointerWarning(LookupContext* ctx, BfTypeReference* typeRef) |
| 3643 | { |
nothing calls this directly
no test coverage detected