]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: move some functions into different files (cleanup)
authorRobert Griesemer <gri@golang.org>
Wed, 10 Nov 2021 16:33:26 +0000 (08:33 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 10 Nov 2021 18:24:14 +0000 (18:24 +0000)
commit6406e09f69c70b10cab58702f10456a3e9a83bef
treeaa88cb02cb4b9730f82c7735372f8844c7022fd1
parent097aaa9cd68fdce10b81fbba43fbb6569a95b53f
cmd/compile/internal/types2: move some functions into different files (cleanup)

- move structuralType/structuralString into type.go
- move functions exported for the compiler into compilersupport.go
- updated/added comments
- removed AsNamed and AsInterface - not needed by compiler

No semantic changes.

Change-Id: Ia454a49edafd627c2a25b0b71db4aa93ddd7f1f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/362995
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/noder/decl.go
src/cmd/compile/internal/noder/expr.go
src/cmd/compile/internal/types2/builtins.go
src/cmd/compile/internal/types2/compilersupport.go [new file with mode: 0644]
src/cmd/compile/internal/types2/type.go