public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition)
 {
     this.condition = condition;
     this.embeddedStatement = embeddedStatement;
     this.conditionType = conditionType;
     this.conditionPosition = conditionPosition;
 }
예제 #2
0
        private static string Convert(ConditionPosition conditionPosition)
        {
            if (conditionPosition == ConditionPosition.PostLoop)
            {
                return("postLoop");
            }

            else
            {
                return("preLoop");
            }
        }
예제 #3
0
 /// <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) {}
예제 #5
0
파일: Statements.cs 프로젝트: soshan10/AI
 public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition)
 {
 }
예제 #6
0
파일: Generated.cs 프로젝트: Altaxo/Altaxo
		public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition) {
			Condition = condition;
			EmbeddedStatement = embeddedStatement;
			ConditionType = conditionType;
			ConditionPosition = conditionPosition;
		}
예제 #7
0
 public DoLoopStatement(Expression condition, Statement embeddedStatement, ConditionType conditionType, ConditionPosition conditionPosition)
 {
     this.Condition         = condition;
     this.EmbeddedStatement = embeddedStatement;
     this.ConditionType     = conditionType;
     this.ConditionPosition = conditionPosition;
 }
예제 #8
0
 protected void Attribute(string name, ConditionPosition value)
 {
     wr.WriteAttributeString(name, Convert(value));
 }