From a20724d63425ccb871c57d45e2401af2401518bc Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Tue, 11 Jan 2022 12:53:25 -0500 Subject: [PATCH] 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 --- src/cmd/compile/internal/types2/api.go | 1 + src/go/types/api.go | 1 + 2 files changed, 2 insertions(+) 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 -- 2.50.0