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

Method BreakExtendChain

IDEHelper/Compiler/BfModule.cpp:131–140  ·  view source on GitHub ↗

The "extend chain" is broken when we have a conditional where the variable may not be defined after the block. IE: "a" will be defined after the following, but "b" will not necessarily be defined. if ((GetValue(out a)) && (GetValue(out b)) {}

Source from the content-addressed store, hash-verified

129// IE: "a" will be defined after the following, but "b" will not necessarily be defined.
130// if ((GetValue(out a)) && (GetValue(out b)) {}
131void BfDeferredLocalAssignData::BreakExtendChain()
132{
133 if (!mIsChained)
134 return;
135 mIsChained = false;
136 if (mChainedAssignData == NULL)
137 return;
138 mChainedAssignData->BreakExtendChain();
139 mAssignedLocals = mChainedAssignData->mAssignedLocals;
140}
141
142void BfDeferredLocalAssignData::SetIntersection(const BfDeferredLocalAssignData& otherLocalAssignData)
143{

Callers 5

DoIfStatementMethod · 0.80
DoForLessMethod · 0.80
ExtendFromMethod · 0.80
DoCaseExpressionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected