| 15831 | } |
| 15832 | |
| 15833 | void BfModule::MarkUsingThis() |
| 15834 | { |
| 15835 | auto useMethodState = mCurMethodState; |
| 15836 | while ((useMethodState != NULL) && (useMethodState->mClosureState != NULL) && (useMethodState->mClosureState->mCapturing)) |
| 15837 | { |
| 15838 | useMethodState = useMethodState->mPrevMethodState; |
| 15839 | } |
| 15840 | |
| 15841 | if ((useMethodState != NULL) && (!useMethodState->mLocals.IsEmpty())) |
| 15842 | { |
| 15843 | auto localVar = useMethodState->mLocals[0]; |
| 15844 | if (localVar->mIsThis) |
| 15845 | localVar->mReadFromId = useMethodState->GetRootMethodState()->mCurAccessId++; |
| 15846 | } |
| 15847 | } |
| 15848 | |
| 15849 | BfTypedValue BfModule::GetThis(bool markUsing) |
| 15850 | { |
no test coverage detected