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 <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Robert Findley 2022-01-11 12:53:25 -05:00
parent 1abe9c1c73
commit a20724d634
2 changed files with 2 additions and 0 deletions

View file

@ -265,6 +265,7 @@ type Info struct {
//
// *syntax.File
// *syntax.FuncType
// *syntax.TypeDecl
// *syntax.BlockStmt
// *syntax.IfStmt
// *syntax.SwitchStmt

View file

@ -260,6 +260,7 @@ type Info struct {
//
// *ast.File
// *ast.FuncType
// *ast.TypeSpec
// *ast.BlockStmt
// *ast.IfStmt
// *ast.SwitchStmt