Skip to content

Commit

Permalink
debugEcho
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Apr 20, 2024
1 parent ee3c497 commit 468b947
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tim/engine/ast.nim
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ proc `$`*(x: Ast): string =
else:
toJson(x)

proc debugEcho*(node: Node) =
echo pretty(toJson(node), 2)

#
# AST Generators
#
Expand Down

0 comments on commit 468b947

Please sign in to comment.