Mono.CSharp.BlockContext.EndFlowBranching C# (CSharp) Method

EndFlowBranching() public method

Ends a code branching. Merges the state of locals and parameters from all the children of the ending branching.
public EndFlowBranching ( ) : bool
return bool
		public bool EndFlowBranching ()
		{
			FlowBranching old = current_flow_branching;
			current_flow_branching = current_flow_branching.Parent;

			FlowBranching.UsageVector vector = current_flow_branching.MergeChild (old);
			return vector.IsUnreachable;
		}

Usage Example

Example #1
0
        public override bool Resolve(BlockContext ec)
        {
            ec.StartFlowBranching(iterator);
            bool ok = original_block.Resolve(ec);

            ec.EndFlowBranching();
            return(ok);
        }
All Usage Examples Of Mono.CSharp.BlockContext::EndFlowBranching