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

Method GetThisVariable

IDEHelper/Compiler/BfModule.cpp:16037–16045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16035}
16036
16037BfLocalVariable* BfModule::GetThisVariable()
16038{
16039 if (mCurMethodState == NULL)
16040 return NULL;
16041 auto methodState = mCurMethodState->GetNonCaptureState();
16042 if ((methodState->mLocals.size() > 0) && (methodState->mLocals[0]->mIsThis))
16043 return methodState->mLocals[0];
16044 return NULL;
16045}
16046
16047bool BfModule::IsInGeneric()
16048{

Callers 3

LookupIdentifierMethod · 0.80
VisitMethod · 0.80
CheckModifyResultMethod · 0.80

Calls 2

GetNonCaptureStateMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected