]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] go/ast: remove the typeparams build constraint
authorRob Findley <rfindley@google.com>
Mon, 7 Jun 2021 14:29:44 +0000 (10:29 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 17 Jun 2021 02:05:42 +0000 (02:05 +0000)
commitad59efb02705a9f33a1eb9a9c04740da721a8cc4
treecbc835aad070a7ad3ab141917d77917ce2b5a9b3
parent1ba2074440a9b82b6e39c42f40b9d04858aa6c75
[dev.typeparams] go/ast: remove the typeparams build constraint

This CL removes the typeparams build constraint guarding changes to the
go/ast and go/types APIs. Notably it does not remove all indirection
added to hide the type parameter API: the go/internal/typeparams
package is not yet deleted, nor have go/parser or go/types been updated
to access type parameter data directly. This will be done in a follow-up
CL; the intent of this CL is to make it easier to support the new type
set syntax, and to experiment with different AST APIs.

Change-Id: I13ea0285752991b87b3aead1d1371e1f3f817b1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/325689
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/ast/ast.go
src/go/ast/ast_notypeparams.go [deleted file]
src/go/ast/ast_typeparams.go [deleted file]
src/go/ast/walk.go
src/go/ast/walk_notypeparams.go [deleted file]
src/go/ast/walk_typeparams.go [deleted file]
src/go/internal/typeparams/notypeparams.go [deleted file]
src/go/internal/typeparams/typeparams.go
src/go/types/api_notypeparams.go [deleted file]
src/go/types/api_typeparams.go
src/go/types/api_typeparams_test.go