From 41f7c7337cb7a0c1d36e53d668bdc2394521ef85 Mon Sep 17 00:00:00 2001 From: Nathan Fischer Date: Tue, 31 Oct 2023 17:06:15 -0700 Subject: [PATCH] Don't use .toString (#61) --- ninny/src/nrktkt/ninny/ast/package.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ninny/src/nrktkt/ninny/ast/package.scala b/ninny/src/nrktkt/ninny/ast/package.scala index 2235da1..073518d 100644 --- a/ninny/src/nrktkt/ninny/ast/package.scala +++ b/ninny/src/nrktkt/ninny/ast/package.scala @@ -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())