summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/testing_test.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/compile/internal/syntax: rename ErrorMap to CommentMap, make more flexibleRobert Griesemer2023-01-171-17/+20
| | | | | | | | | | | | | | | | | | | Change the ErrorMap function to collect all comments with a comment text that matches a given regexp pattern. Also rename it to CommentMap. Adjust uses and corresponding test. Adjust various type-checker tests with incorrect ERROR patterns. For #51006. Change-Id: I749e8f31b532edbf8568f27ba1546dc849efd143 Reviewed-on: https://go-review.googlesource.com/c/go/+/456155 Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Run-TryBot: Robert Griesemer <gri@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Cherry Mui <cherryyz@google.com>
* [dev.typeparams] cmd/compile/internal/syntax: add utility functions for testingRobert Griesemer2020-10-201-0/+45
Preparation step for types2 package. Change-Id: I8f9557b1a48ad570ba38aac7b720e639218dc6a7 Reviewed-on: https://go-review.googlesource.com/c/go/+/263623 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>