private void Write(AugmentedAssignStatementNode stmt) { Fill(); Write(stmt.Children[0]); _code.Append(" "); Write(stmt.Value); _code.Append("= "); Write(stmt.Children[1]); }
private static PythonNode Wrap(AugmentedAssignStatement stmt, PythonNode parent) { var result = new AugmentedAssignStatementNode(stmt) { Parent = parent, Value = stmt.Operator.ToString() }; result.AddChild(Wrap(stmt.Left, result)); result.AddChild(Wrap(stmt.Right, result)); result.Value = stmt.Operator; return(result); }