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

Method IsDyn

IDEHelper/Compiler/BfModule.h:561–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559 }
560
561 bool IsDyn(BfScopeData* scopeData)
562 {
563 auto checkScope = this;
564 // Scoping to a loop is dynamic - it doesn't have to cross the loop boundary.
565 // Scoping to a loop _body_ is not necessarily dynamic, however.
566 while (checkScope != NULL)
567 {
568 if (checkScope->mIsConditional)
569 return true;
570 if ((checkScope->mIsLoop) || (checkScope->mInnerIsConditional))
571 return true;
572 if (checkScope == scopeData)
573 break;
574 if (checkScope->mOuterIsConditional)
575 return true;
576 checkScope = checkScope->mPrevScope;
577 }
578 return false;
579 }
580
581 bool CrossesMixin(BfScopeData* scopeData)
582 {

Callers 3

AddDeferredCallEntryMethod · 0.80
AddStackAllocMethod · 0.80
AllocFromTypeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected