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

Method ProcessMethod

IDEHelper/Compiler/BfContext.cpp:117–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void BfContext::ProcessMethod(BfMethodInstance* methodInstance)
118{
119 // When we are doing as resolveOnly pass over unused methods in the compiler,
120 // we use the scratch module to ensure mIsResolveOnly flag is set when we
121 // process the method
122 auto defModule = methodInstance->mDeclModule;
123 if ((!methodInstance->mIsReified) && (!mCompiler->mIsResolveOnly))
124 defModule = mUnreifiedModule;
125
126 auto typeInst = methodInstance->GetOwner();
127 defModule->ProcessMethod(methodInstance);
128 mCompiler->mStats.mMethodsProcessed++;
129 if (!methodInstance->mIsReified)
130 mCompiler->mStats.mUnreifiedMethodsProcessed++;
131 mCompiler->UpdateCompletion();
132}
133
134int BfContext::GetStringLiteralId(const StringImpl& str)
135{

Callers 1

ProcessWorkListMethod · 0.45

Calls 2

UpdateCompletionMethod · 0.80
GetOwnerMethod · 0.45

Tested by

no test coverage detected