void PushConditionExpression (Instruction instruction)
		{
			var condition = new ConditionExpression ();
			condition.Condition = Pop ();

			ProcessExpressionBlock (current_block.Successors [1]);
			condition.Else = Pop ();

			ProcessExpressionBlock (current_block.Successors [0]);
			condition.Then = Pop ();

			Push (condition);
		}
		public override void VisitConditionExpression (ConditionExpression node)
		{
			WriteToken ("(");
			Visit (node.Condition);
			WriteTokenBetweenSpace ("?");
			Visit (node.Then);
			WriteTokenBetweenSpace (":");
			Visit (node.Else);
			WriteToken (")");
		}
Пример #3
0
		public virtual void VisitConditionExpression (ConditionExpression node)
		{
			Visit (node.Condition);
			Visit (node.Then);
			Visit (node.Else);
		}