Skip to content

go/ast: optionally save comments #29821

Description

@stamblerre

go/ast doesn't save comments in the tree when a file is parsed, (they are kept in the field *ast.File.Comments). This causes problems for functions like astutil.PathEnclosingInterval and forces comments to be special cased in the LSP completions package (context: #29780).

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions