You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An ast.FieldList element is of type ast.Field which explains that a type can be a method type (the obvious case here). It also explains that Names can be nil for anonymous fields (which is the equivalent of embedded types.
The go/ast documentation is deliberately sparse so that the "forest" (the overall ast package) can be seen despite all the "trees". It's not meant as a tutorial.
What did you do?
What did you expect to see?
It doesn't explain what type to expect in Methods.List[x].Type, or that Methods.List[x].Names can be empty (for embedded interfaces).
What did you see instead?
System details
The text was updated successfully, but these errors were encountered: