private void Write(TupleExpressionNode exp) { for (var i = 0; i < exp.Children.Count; i++) { Write(exp.Children[i]); if (i < exp.Children.Count - 1) { _code.Append(", "); } } }
private static PythonNode Wrap(TupleExpression exp, PythonNode parent) { var result = new TupleExpressionNode(exp) { Parent = parent }; result.Value = exp.IsExpandable; foreach (var item in exp.Items) { result.AddChild(Wrap(item, result)); } return(result); }