How to generate node tree(parse tree) in Go 1.7?

I read this article, Diving Into the Go Compiler. It shows how to generate node tree(parse tree) in Go 1.4 and the two versions of it. These two versions of node tree reveals many details. I think it is helpful when I want to trace how Go compiler treats the Type Assertion.

But go tool 6g -W test.go doesn’t work in Go 1.7.4. Does anyone know how to generate node tree(parse tree) in Go 1.7?

Thanks.

go tool compile -W file.go

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.