From d9244f8b641e8f60ab4b6edd976f1762606649e3 Mon Sep 17 00:00:00 2001 From: Tim King Date: Fri, 3 Sep 2021 20:27:35 +0000 Subject: [PATCH] Revert "go/ast: clarify when Ident.Obj is nil" This reverts commit 52aef05498a9e84ede16fb7ce46a2a252af05479. Reason for revert: After discussion on CL 347530, it is not clear this is an improvement to the documentation. Updates #48141 Change-Id: I5f3d9995c5f5666b92602c4b8ec393673baa73fc Reviewed-on: https://go-review.googlesource.com/c/go/+/347592 Trust: Cherry Mui Trust: Robert Findley Reviewed-by: Robert Findley --- src/go/ast/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/ast/ast.go b/src/go/ast/ast.go index f6abb2d175..b0f1330564 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 if the referenced declaration is not found in the parsed scope + Obj *Object // denoted object; or nil } // An Ellipsis node stands for the "..." type in a -- 2.50.0