]> Cypherpunks repositories - gostls13.git/commit
go/doc/comment: add data structures
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2022 11:55:25 +0000 (07:55 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2022 16:31:33 +0000 (16:31 +0000)
commit494b79f39ab8e7b6f096b6c6088bd84bb8592dc4
treec45f41953b579e9502c6dce084db387f973f65a5
parent32de2b0d1cf4d60119d7c717acec2163342392b9
go/doc/comment: add data structures

[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]

Implement just the data structures of the new API for
parsing and printing doc comments, as well as a syntax tree
form for inspecting and manipulating them.

The API itself was discussed and accepted as part of the
proposal process in #51082.

For #51082.

Change-Id: Iae7fbc85705964585273b970c5c62e394feb1288
Reviewed-on: https://go-review.googlesource.com/c/go/+/397276
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
api/next/51082.txt [new file with mode: 0644]
src/go/build/deps_test.go
src/go/doc/comment/parse.go [new file with mode: 0644]