How do you make the jump from a go/type.TypeName to ast Decl? Is there some easy crosslink?
On Fri, Jul 26, 2024, 4:24 PM Jason E. Aten <j.e.a...@gmail.com> wrote: > To be more specific, > > ast.TypeSpec.Name.Name is, I think, what you are after. > > See https://pkg.go.dev/go/ast#TypeSpec > > And the TypeSpec are found in the ast.File.Decls, after type switching in > the manner of getast.go#360 > > https://pkg.go.dev/go/ast#File > > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/golang-nuts/eQxFFSRKL24/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/01c4a98c-30f4-4cd6-bc7f-a7edf781641an%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/01c4a98c-30f4-4cd6-bc7f-a7edf781641an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAO_RewZPe3HoHiO8WWZSRF6EEzLf4bWhS68M-ydW7tte-nMuhQ%40mail.gmail.com.