]> Cypherpunks repositories - gostls13.git/commitdiff
Revert "go/ast: clarify when Ident.Obj is nil"
authorTim King <taking@google.com>
Fri, 3 Sep 2021 20:27:35 +0000 (20:27 +0000)
committerTim King <taking@google.com>
Fri, 3 Sep 2021 21:31:30 +0000 (21:31 +0000)
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 <cherryyz@google.com>
Trust: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/ast/ast.go

index f6abb2d1752f160fba343b6c7356576fad5fe6b0..b0f133056425652958430342ca433dce4b732656 100644 (file)
@@ -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