summaryrefslogtreecommitdiff
path: root/src/go/printer
Commit message (Expand)AuthorAgeFilesLines
* Revert "go/printer: reuse go/token.FileSet.PositionFor calls in setPos"Than McIntosh2023-04-111-5/+1
* go/printer: reuse go/token.FileSet.PositionFor calls in setPosDaniel Martí2023-04-111-1/+5
* all: fix a few function names on commentscui fliter2022-11-031-1/+1
* all: use strings.CutPrefixcui fliter2022-09-271-3/+4
* go/printer: make ExampleFprint correctly run as online exampleShengyu Zhang2022-09-161-8/+8
* go/printer: reduce allocations to improve performanceDaniel Martí2022-09-092-22/+76
* go/printer: rename printPos to setPosRobert Griesemer2022-08-192-57/+57
* go/printer: avoid allocating for every position printedDaniel Martí2022-08-182-60/+126
* go/printer: avoid copying bytes when counting node sizesDaniel Martí2022-08-111-11/+25
* go/printer: report allocs and set bytesDaniel Martí2022-06-281-1/+7
* go/printer: if comment gets formatted away, don't squashIan Lance Taylor2022-05-253-0/+21
* go/printer: align expression list elements containing tabsDaniel Martí2022-05-101-2/+3
* go/printer: fix printing for possibly ambiguous type constraintsRobert Griesemer2022-05-063-43/+94
* go/parser: accept all valid type parameter listsRobert Griesemer2022-05-041-1/+1
* go/ast, go/printer: recognize export and extern line directivesRuss Cox2022-04-113-1/+15
* all: gofmt main repoRuss Cox2022-04-111-27/+29
* go/printer: format doc commentsRuss Cox2022-04-119-14/+233
* all: remove trailing blank doc comment linesRuss Cox2022-04-014-29/+0
* all: fix TODO comment hanging indentsRuss Cox2022-04-012-8/+8
* internal/diff: add, replacing cmd/internal/diffRuss Cox2022-03-181-30/+6
* go/printer: don't print unnecesary commas for func type param listsRobert Findley2022-03-083-8/+67
* go/parser, go/printer: fix parsing of ambiguous type parameter listsRobert Findley2022-02-153-0/+80
* all: gofmt -w -r 'interface{} -> any' srcRuss Cox2021-12-132-9/+9
* go/types, types2, go/ast, go/parser: remove support for type listsRobert Findley2021-10-283-44/+8
* go/parser: allow eliding interface in constraint literalsRobert Findley2021-10-112-0/+10
* all: use bytes.Cut, strings.CutRuss Cox2021-10-062-9/+6
* go/ast: rename MultiIndexExpr to IndexListExprRobert Findley2021-09-081-1/+1
* go/ast: rename TParams fields to TypeParamsRobert Findley2021-09-081-4/+4
* go/internal/typeparams: remove typeparams.{Get,Set} (cleanup)Robert Findley2021-08-311-5/+4
* [dev.typeparams] go/internal/typeparams: remove the Enabled guardRob Findley2021-07-161-4/+0
* [dev.typeparams] go/*: switch from ListExpr to MultiIndexExprRob Findley2021-07-161-11/+9
* go: various minor cleanups with the help of Golandkumakichi2021-04-271-1/+1
* all: remove redundant spaces before . and ,Yury Smolsky2021-04-201-1/+1
* go/*,cmd/gofmt: guard AST changes with the typeparams build tagRob Findley2021-04-136-37/+38
* go/parser,go/types: hide API changes related to type parametersRob Findley2021-03-021-4/+13
* go/printer: canonicalize //go:build and // +build lines while formattingRuss Cox2021-02-2017-6/+299
* [dev.typeparams] go/types: use a new ast.ListExpr for multi-type instancesRob Findley2021-02-181-23/+20
* [dev.typeparams] merge: merge branch 'dev.regabi' into 'dev.typeparams'Robert Griesemer2020-12-142-8/+8
|\
| * all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTempRuss Cox2020-12-092-8/+8
* | [dev.typeparams] go/printer: adapt changes from dev.go2goRob Findley2020-12-026-50/+183
|/
* all: update references to symbols moved from io/ioutil to ioRuss Cox2020-10-201-1/+1
* go/printer: remove exported StdFormat flagDmitri Shuralyov2020-07-175-13/+32
* cmd/gofmt, go/format, go/printer: move number normalization to printerDmitri Shuralyov2020-05-017-1/+625
* all: fix incorrect channel and API usage in some unit testsZiheng Liu2020-02-271-1/+1
* cmd/gofmt: fix computation of function header sizeEli Bendersky2019-09-241-11/+16
* go/printer: never print a newline before the returned resultsDaniel Martí2019-09-232-2/+35
* printer: check if specs exist before accessing them in genDecl printerPatrick Barker2019-03-141-1/+1
* go/printer: add missing error checks in testsLeon Klingele2019-03-021-0/+7
* all: use "reports whether" consistently instead of "returns whether"Tobias Klauser2018-12-021-1/+1
* go/printer: print parenthesized declarations if len(d.Specs) > 1David Tolpin2018-11-272-1/+33