public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) { this.condition = condition; this.embeddedStatement = embeddedStatement; this.conditionType = conditionType; this.conditionPosition = conditionPosition; }
private static string Convert(ConditionPosition conditionPosition) { if (conditionPosition == ConditionPosition.PostLoop) { return("postLoop"); } else { return("preLoop"); } }
/// <summary> /// Constructor. /// </summary> /// <param name="conditionPos">Situacio de la condicio.</param> /// <param name="conditionExp">Expressio de la condicio.</param> /// <param name="stmt">Instruccio.</param> /// public LoopStatement(ConditionPosition conditionPos, Expression conditionExp, Statement stmt) { ConditionPos = conditionPos; ConditionExp = conditionExp ?? throw new ArgumentNullException(nameof(conditionExp)); Stmt = stmt; }
public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) {}
public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) { }
public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) { Condition = condition; EmbeddedStatement = embeddedStatement; ConditionType = conditionType; ConditionPosition = conditionPosition; }
public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) { this.Condition = condition; this.EmbeddedStatement = embeddedStatement; this.ConditionType = conditionType; this.ConditionPosition = conditionPosition; }
protected void Attribute(string name, ConditionPosition value) { wr.WriteAttributeString(name, Convert(value)); }