]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: move exported predicates into separate file
authorRobert Griesemer <gri@golang.org>
Tue, 14 Nov 2023 00:46:47 +0000 (16:46 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 16 Nov 2023 20:54:25 +0000 (20:54 +0000)
commite62bf150cc0802b3697da315ee41e19c0bbfb7eb
tree965f067592b912d935f6f14148fa55b2e87e5397
parenta95c5d37f256d2c3fb462b3e0e544bef39f83f7c
go/types, types2: move exported predicates into separate file

This allows those functions to be generated for go/types.
Also, change the generator's renameIdent mechanism so that
it can rename multiple identifiers in one pass through the
AST instead of requiring multiple passes.

No type-checker functionality changes.

Change-Id: Ic78d899c6004b6a0692a95902fdc13f8ffb47824
Reviewed-on: https://go-review.googlesource.com/c/go/+/542757
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/api.go
src/cmd/compile/internal/types2/api_predicates.go [new file with mode: 0644]
src/go/types/api.go
src/go/types/api_predicates.go [new file with mode: 0644]
src/go/types/generate_test.go