From: Cuong Manh Le Date: Fri, 3 Sep 2021 04:18:16 +0000 (+0700) Subject: go/ast: clarify when Ident.Obj is nil X-Git-Tag: go1.18beta1~1489 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=52aef05498a9e84ede16fb7ce46a2a252af05479;p=gostls13.git go/ast: clarify when Ident.Obj is nil Fixes #48141 Change-Id: Id20b7801d31456ffd74301ed0fd84788b8982fb1 Reviewed-on: https://go-review.googlesource.com/c/go/+/347530 Trust: Cuong Manh Le Run-TryBot: Cuong Manh Le Reviewed-by: Robert Findley TryBot-Result: Go Bot --- diff --git a/src/go/ast/ast.go b/src/go/ast/ast.go index b0f1330564..f6abb2d175 100644 --- a/src/go/ast/ast.go +++ b/src/go/ast/ast.go @@ -290,7 +290,7 @@ type ( Ident struct { NamePos token.Pos // identifier position Name string // identifier name - Obj *Object // denoted object; or nil + Obj *Object // denoted object; or nil if the referenced declaration is not found in the parsed scope } // An Ellipsis node stands for the "..." type in a