]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fmt improvements for AST nodes and some comments on AST nodes
authorDan Scales <danscales@google.com>
Thu, 29 Oct 2020 22:31:16 +0000 (15:31 -0700)
committerDan Scales <danscales@google.com>
Sat, 31 Oct 2020 00:17:28 +0000 (00:17 +0000)
commit07e4f0fd4b0f215cdfa7d6ea50f3e6402762a1a9
treeed8683efb99ee54c98ab9f73f6e8b2c1729f9462
parentfd56942fe3725feaa53bed67daf7412742e4f2ab
cmd/compile: fmt improvements for AST nodes and some comments on AST nodes

Changed fmt.go to print out some extra information for various kinds of
Nodes. This includes some extra (small) info in the %j (jconv) output,
and some missing sections (such as Dcls and the body of a closure) in
nodedump().

Also, added some extra doc comments for a few Node types in syntax.go

Change-Id: I2ec7184e2abe0d5fbe3fb5a2506da7c7b06f2fb1
Reviewed-on: https://go-review.googlesource.com/c/go/+/266437
Run-TryBot: Dan Scales <danscales@google.com>
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/syntax.go