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

Method CreateRefType

IDEHelper/Compiler/BfModuleTypeUtils.cpp:8478–8488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8476}
8477
8478BfRefType* BfModule::CreateRefType(BfType* resolvedTypeRef, BfRefType::RefKind refKind)
8479{
8480 auto refType = mContext->mRefTypePool.Get();
8481 refType->mContext = mContext;
8482 refType->mElementType = resolvedTypeRef;
8483 refType->mRefKind = refKind;
8484 auto resolvedRefType = ResolveType(refType);
8485 if (resolvedRefType != refType)
8486 mContext->mRefTypePool.GiveBack(refType);
8487 return (BfRefType*)resolvedRefType;
8488}
8489
8490BfModifiedTypeType* BfModule::CreateModifiedTypeType(BfType* resolvedTypeRef, BfToken modifiedKind)
8491{

Callers 6

MatchConstructorMethod · 0.80
MatchMethodMethod · 0.80
GetLambdaInstanceMethod · 0.80
InjectMixinMethod · 0.80
HandleNextCmdMethod · 0.80

Calls 2

GiveBackMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected