-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
The go/ast.Ident is declared as:
type Ident struct {
NamePos token.Pos // identifier position
Name string // identifier name
Obj *Object // denoted object; or nil
}
Unfortunately, the doc is not much helpful, since when there's no description/example about when Ident.Obj
is nil, and how to resolve it.
It's better if we add more documentation to describe this situation.
cc @griesemer @findleyr @mdempsky @timothy-king
For more context, I end up filing this issue after getting the review from @timothy-king in CL 347089. The root cause of that issue is the function declaration of an ident and the ident itself are in two separated files of the same package. Thus the Ident.Obj
is nil, and I'm looking through all the pass.Files
to lookup the ident's Object.
willfaught
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.