| 115 | } |
| 116 | |
| 117 | void 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 | |
| 134 | int BfContext::GetStringLiteralId(const StringImpl& str) |
| 135 | { |
no test coverage detected