Ejemplo n.º 1
0
 internal protected GuardedProcess(
     Definition.GuardedProcess definition,
     Choice parent
     )
     : base(
         definition,
         parent)
 {
 }
Ejemplo n.º 2
0
        bool IVisitor.Enter(
            GuardedProcess guardedProcess
            )
        {
            var guardExpression = (object)guardedProcess.GuardExpressionExpression ?? guardedProcess.GuardExpression;

            if (guardExpression != null)
            {
                _builder.AppendFormat(
                    "({0})&",
                    guardExpression);
            }

            guardedProcess.Guard.Accept(this);

            if (guardedProcess.Guarded != null)
            {
                _builder.Append("->");
                guardedProcess.Guarded.Accept(this);
            }

            return(false);
        }
Ejemplo n.º 3
0
 bool IVisitor.Exit(
     GuardedProcess guardedProcess
     )
 {
     return(true);
 }