Skip to content

Commit

Permalink
Don't use .toString (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrktkt authored Nov 1, 2023
1 parent e120840 commit 41f7c73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ninny/src/nrktkt/ninny/ast/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ package object ast {

def to[A: FromJson] = FromJson[A].from(this)

/** Do not use this. Use [[Json.render]] instead. This method may return a
* human-readable representation of the AST in the future.
*/
override def toString = Json.render(this)

def withUpdated = Update(this, Vector())
Expand Down

0 comments on commit 41f7c73

Please sign in to comment.