Skip to content

Commit

Permalink
Allow skipping alias_gensyms in prettify
Browse files Browse the repository at this point in the history
Suggested here: FluxML#124 (comment)
  • Loading branch information
goretkin committed Jul 3, 2020
1 parent 0b7c46a commit 070bdd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -502,5 +502,5 @@ end
Makes generated code generaly nicer to look at.
"""
prettify(ex; lines = false) =
ex |> (lines ? identity : striplines) |> flatten |> unresolve |> resyntax |> alias_gensyms
prettify(ex; lines = false, alias = true) =
ex |> (lines ? identity : striplines) |> flatten |> unresolve |> resyntax |> (alias ? alias_gensyms : identity)

0 comments on commit 070bdd8

Please sign in to comment.