]> Cypherpunks repositories - gostls13.git/commit
go/ast: print CommentMap contents in source order
authorRobert Griesemer <gri@golang.org>
Fri, 30 Apr 2021 04:38:43 +0000 (21:38 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 30 Apr 2021 16:04:36 +0000 (16:04 +0000)
commit0dfb6fb4907c770269d5530f210567e371eebeaa
treeaf97327083c633a76ed834ac6cd25e00eaaecc10
parent06ac303f6a14b133254f757e54599c48e3c2a4ad
go/ast: print CommentMap contents in source order

Sort the comment map entries before printing.
Makes it easier to use the output for debugging.

For #39753.

Change-Id: Ic8e7d27dd2df59173e2c3a04a6b71ae966703885
Reviewed-on: https://go-review.googlesource.com/c/go/+/315370
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/ast/commentmap.go