docs: document methods

This commit is contained in:
2025-12-29 20:44:55 -05:00
parent 05cd8bc4f3
commit 412d3924eb
3 changed files with 3 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ func stringifyClause(n *ast.Clause) string {
return "{ " + stmts + Stringify(n.Returns) + " }"
}
// Convert an expression back into valid source code.
func Stringify(n ast.Expression) string {
switch n := n.(type) {
case *ast.Atom: