dst icon indicating copy to clipboard operation
dst copied to clipboard

Is it support to get `go/types.Object` through `Ident`

Open boringplay opened this issue 2 years ago • 1 comments

How to implement such code as followed using go/ast:

pkg.TypesInfo.ObjectOf(ident)

boringplay avatar Feb 28 '23 03:02 boringplay

Sorry, can you go into a bit more detail what you want to do? I'm having trouble understanding the question. It's possible you might be looking for the mappings feature? https://github.com/dave/dst#mappings

dave avatar Feb 28 '23 03:02 dave