mirror of https://github.com/golang/go.git
And fix a minor issue in copytermlist.go -- copytermlist.go replaces type names from go/types with qualified type names. Use of token.NoPos (filled with ast.NewIdent) however confuses the go/format printer. As a result, while transforming func (x *term) includes(t Type) bool to func (x *term) includes(t types.Type) bool go/format printer failed to compute the end position of the parameter list, concluded RPAREN should be in a different line from the parameter list, added a comma, and printed func (x *term) includes(t types.Type,) bool Reuse the replaced node's position instead. (not 100% correct, but better than NoPos) Change-Id: Ia34e11562cc80c68dcf4b921ffffd926971c2215 Reviewed-on: https://go-review.googlesource.com/c/tools/+/405536 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Robert Findley <rfindley@google.com> |
||
|---|---|---|
| .. | ||
| analysisinternal | ||
| apidiff | ||
| event | ||
| fakenet | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| jsonrpc2_v2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| proxydir | ||
| span | ||
| stack | ||
| testenv | ||
| tool | ||
| typeparams | ||
| typesinternal | ||
| xcontext | ||