diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-07-27 00:37:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-27 09:37:11 +0200 |
commit | 3b3006ef16d5398df7552d9f0d9eb5b2dcce0bc5 (patch) | |
tree | 218f18bab9b072c937dc6e2866285cc24bd8ca92 | |
parent | ed44618deb7173ecfe41420fc90871b83a0d08ca (diff) | |
download | Nim-3b3006ef16d5398df7552d9f0d9eb5b2dcce0bc5.tar.gz |
add comment to astalgo.debug (#18594)
-rw-r--r-- | compiler/astalgo.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 3c97665f0..94fa9da93 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -585,6 +585,9 @@ proc value(this: var DebugPrinter; value: PNode) = this.openCurly this.key "kind" this.value value.kind + if value.comment.len > 0: + this.key "comment" + this.value value.comment when defined(useNodeIds): this.key "id" this.value value.id |