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

Method AddScope

IDEHelper/Compiler/BfModule.h:1185–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183 ~BfMethodState();
1184
1185 void AddScope(BfScopeData* newScopeData)
1186 {
1187 BF_ASSERT(newScopeData != mCurScope);
1188
1189 mInHeadScope = false;
1190 newScopeData->mDIScope = mCurScope->mDIScope;
1191 newScopeData->mDIInlinedAt = mCurScope->mDIInlinedAt;
1192 newScopeData->mLocalVarStart = mCurScope->mLocalVarStart;
1193 newScopeData->mExprEvaluator = mCurScope->mExprEvaluator;
1194 newScopeData->mAltDIFile = mCurScope->mAltDIFile;
1195 newScopeData->mPrevScope = mCurScope;
1196 newScopeData->mMixinDepth = mCurScope->mMixinDepth;
1197 newScopeData->mScopeDepth = mCurScope->mScopeDepth + 1;
1198 newScopeData->mInConstIgnore = mCurScope->mInConstIgnore;
1199 mCurScope = newScopeData;
1200 mTailScope = mCurScope;
1201 }
1202
1203 void SetHadReturn(bool hadReturn)
1204 {

Callers 11

EmitDeferredCallMethod · 0.80
DoIfStatementMethod · 0.80
VisitMethod · 0.80
DoForLessMethod · 0.80
BoxValueMethod · 0.80
EmitDtorBodyMethod · 0.80
EmitCtorBodyMethod · 0.80
VisitMethod · 0.80
InjectMixinMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected