]> Cypherpunks.ru repositories - gostls13.git/commitdiff
go/types, types2: mention type decl scopes in Info.Scopes documentation
authorRobert Findley <rfindley@google.com>
Tue, 11 Jan 2022 17:53:25 +0000 (12:53 -0500)
committerRobert Findley <rfindley@google.com>
Tue, 11 Jan 2022 18:17:05 +0000 (18:17 +0000)
We now may have a scope associated with a type declaration, so need to
update our API documentation accordingly.

Change-Id: Ic66dc3b7cd1969b25fb7c4bee986d76ab3544042
Reviewed-on: https://go-review.googlesource.com/c/go/+/377655
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/compile/internal/types2/api.go
src/go/types/api.go

index 4ea3989c39577c4df32a72755e01a045bd3c3937..fe754db7a4e337d0df9454f3a14ba25b1892f454 100644 (file)
@@ -265,6 +265,7 @@ type Info struct {
        //
        //     *syntax.File
        //     *syntax.FuncType
+       //     *syntax.TypeDecl
        //     *syntax.BlockStmt
        //     *syntax.IfStmt
        //     *syntax.SwitchStmt
index 51d58c49aab1336795450882554a2b4ba44a4e4b..a2cc289fbce455d65a9140e0797e8403bc202047 100644 (file)
@@ -260,6 +260,7 @@ type Info struct {
        //
        //     *ast.File
        //     *ast.FuncType
+       //     *ast.TypeSpec
        //     *ast.BlockStmt
        //     *ast.IfStmt
        //     *ast.SwitchStmt