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

Function AddTypeInfo

IDEHelper/Compiler/BfAst.cpp:752–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752static void AddTypeInfo(BfAstTypeInfo* typeInfo)
753{
754 BF_ASSERT(typeInfo->mTypeId == 0);
755
756 typeInfo->mTypeId = (uint8)gTypes.size();
757 gTypes.Add(typeInfo);
758 gAcceptFuncs.Add(typeInfo->mAcceptFunc);
759 for (auto derivedType : typeInfo->mDerivedTypes)
760 AddTypeInfo(derivedType);
761 typeInfo->mFullDerivedCount = (uint8)(gTypes.size() - typeInfo->mTypeId - 1);
762}
763
764void BfAstTypeInfo::Init()
765{

Callers 1

InitMethod · 0.85

Calls 2

sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected