Mono.CSharp.Block.ResolveUnreachable C# (CSharp) Method

ResolveUnreachable() public method

public ResolveUnreachable ( BlockContext ec, bool warn ) : bool
ec BlockContext
warn bool
return bool
		public override bool ResolveUnreachable (BlockContext ec, bool warn)
		{
			unreachable_shown = true;
			unreachable = true;

			if (warn)
				ec.Report.Warning (162, 2, loc, "Unreachable code detected");

			ec.StartFlowBranching (FlowBranching.BranchingType.Block, loc);
			bool ok = Resolve (ec);
			ec.KillFlowBranching ();

			return ok;
		}