Esempio n. 1
0
		protected virtual void OutputExpressionList (CodeExpressionCollection expressions,
							     bool newLineBetweenItems)
		{
			++Indent;
			IEnumerator enumerator = expressions.GetEnumerator();
			if (enumerator.MoveNext()) {
				CodeExpression expression = (CodeExpression)enumerator.Current;

				GenerateExpression (expression);
				
				while (enumerator.MoveNext()) {
					expression = (CodeExpression)enumerator.Current;
					
					output.Write (',');
					if (newLineBetweenItems)
						output.WriteLine ();
					else
						output.Write (' ');
					
					GenerateExpression (expression);
				}
			}
			--Indent;
		}
 /// <devdoc>
 ///    <para>
 ///       Generates code for the specified expression list.
 ///    </para>
 /// </devdoc>
 private void OutputExpressionList(CodeExpressionCollection expressions, bool newlineBetweenItems) {
     bool first = true;
     IEnumerator en = expressions.GetEnumerator();
     Indent++;
     while (en.MoveNext()) {
         if (first) {
             first = false;
         }
         else {
             if (newlineBetweenItems)
                 ContinueOnNewLine(",");
             else
                 Output.Write(", ");
         }
         ((ICodeGenerator)this).GenerateCodeFromExpression((CodeExpression)en.Current, output.InnerWriter, options);
     }
     Indent--;
 }
 private void OutputExpressionList(CodeExpressionCollection expressions, bool newlineBetweenItems)
 {
     bool flag1 = true;
     IEnumerator enumerator1 = expressions.GetEnumerator();
     this.Indent++;
     while (enumerator1.MoveNext())
     {
         if (flag1)
         {
             flag1 = false;
         }
         else if (newlineBetweenItems)
         {
             this.ContinueOnNewLine(",");
         }
         else
         {
             this.Output.Write(", ");
         }
         ((ICodeGenerator)this).GenerateCodeFromExpression((CodeExpression)enumerator1.Current, this.output.InnerWriter, this.options);
     }
     this.Indent--;
 }
Esempio n. 4
0
 private void ValidateExpressionList(CodeExpressionCollection expressions) {
     IEnumerator en = expressions.GetEnumerator();
     while (en.MoveNext()) {
         ValidateExpression((CodeExpression)en.Current);
     }
 }
Esempio n. 5
0
 protected override void OutputExpressionList(CodeExpressionCollection expressions, bool newlineBetweenItems)
 {
     bool first = true;
     IEnumerator en = expressions.GetEnumerator();
     Indent++;
     while (en.MoveNext()) {
         if (first) {
             first = false;
         } else {
             if (newlineBetweenItems) ContinueOnNewLine(",");
             else Write(", ");
         }
         GenerateExpression((CodeExpression)en.Current);
     }
     Indent--;
 }