Exemplo n.º 1
0
 public Condition(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     conditional = info.GetValue <Conditional>("conditional");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new condition node.
 /// </summary>
 /// <param name="conditional">
 /// The conditional to evaluate.
 /// </param>
 public Condition(Conditional conditional)
 {
     this.conditional = conditional;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new if block with a chained elif statement.
 /// </summary>
 /// <param name="expression">The expression to evaluate.</param>
 /// <param name="children">The children of the if.</param>
 /// <param name="elif">The chained if statement.</param>
 public If(Expression expression, IEnumerable <Node> children, Elif elif)
     : base(expression, children)
 {
     this.elif = elif;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new if block with a chained else statement.
 /// </summary>
 /// <param name="expression">The expression to evaluate.</param>
 /// <param name="children">The children of the if.</param>
 /// <param name="else">The chained else statement.</param>
 public If(Expression expression, IEnumerable <Node> children, Else @else)
     : base(expression, children)
 {
     this.elif = @else;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new if block.
 /// </summary>
 /// <param name="expression">The expression to evaluate.</param>
 /// <param name="children">The children of the if.</param>
 public If(Expression expression, IEnumerable <Node> children)
     : base(expression, children)
 {
     this.elif = null;
 }