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; }
private void OutputExpressionList(CodeExpressionCollection expressions, bool newlineBetweenItems = false) { bool first = true; IEnumerator en = expressions.GetEnumerator(); Indent++; while (en.MoveNext()) { if (!first) { if (newlineBetweenItems) { ContinueOnNewLine(","); } else { output.Write(", "); } } else { first = false; } ((ICodeGenerator)this).GenerateCodeFromExpression((CodeExpression)en.Current, output.InnerWriter, options); } Indent--; }
private void ValidateExpressionList(CodeExpressionCollection expressions) { IEnumerator enumerator = expressions.GetEnumerator(); while (enumerator.MoveNext()) { this.ValidateExpression((CodeExpression)enumerator.Current); } }
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--; }