Skip to content

Commit 52aef05

Browse files
committed
go/ast: clarify when Ident.Obj is nil
Fixes golang#48141 Change-Id: Id20b7801d31456ffd74301ed0fd84788b8982fb1 Reviewed-on: https://go-review.googlesource.com/c/go/+/347530 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org>
1 parent ab7c904 commit 52aef05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/ast/ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ type (
290290
Ident struct {
291291
NamePos token.Pos // identifier position
292292
Name string // identifier name
293-
Obj *Object // denoted object; or nil
293+
Obj *Object // denoted object; or nil if the referenced declaration is not found in the parsed scope
294294
}
295295

296296
// An Ellipsis node stands for the "..." type in a

0 commit comments

Comments
 (0)