Skip to content

TypeInfo.RawDecl.Doc instead of TypeInfo.Doc for Type documentation #27

Closed

Description

Can we use RawDecl.Doc instead of the mutated .Doc field that comes back from the collector? Or provide a flag to allow that?

I have a type I'm trying to document where I have some example yaml in the types docstring and its not working so well.

Thanks!

func (p *processor) processType(pkg *loader.Package, info *markers.TypeInfo, depth int) *types.Type {
typeDef := &types.Type{
Name: info.Name,
Package: pkg.PkgPath,
Doc: info.Doc,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions