From: Robert Findley Date: Tue, 11 Jan 2022 17:53:25 +0000 (-0500) Subject: go/types, types2: mention type decl scopes in Info.Scopes documentation X-Git-Tag: go1.18beta2~119 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a20724d63425ccb871c57d45e2401af2401518bc;p=gostls13.git go/types, types2: mention type decl scopes in Info.Scopes documentation 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 Run-TryBot: Robert Findley Reviewed-by: Robert Griesemer TryBot-Result: Gopher Robot --- diff --git a/src/cmd/compile/internal/types2/api.go b/src/cmd/compile/internal/types2/api.go index 4ea3989c39..fe754db7a4 100644 --- a/src/cmd/compile/internal/types2/api.go +++ b/src/cmd/compile/internal/types2/api.go @@ -265,6 +265,7 @@ type Info struct { // // *syntax.File // *syntax.FuncType + // *syntax.TypeDecl // *syntax.BlockStmt // *syntax.IfStmt // *syntax.SwitchStmt diff --git a/src/go/types/api.go b/src/go/types/api.go index 51d58c49aa..a2cc289fbc 100644 --- a/src/go/types/api.go +++ b/src/go/types/api.go @@ -260,6 +260,7 @@ type Info struct { // // *ast.File // *ast.FuncType + // *ast.TypeSpec // *ast.BlockStmt // *ast.IfStmt // *ast.SwitchStmt