Skip to content

wit-parser: Doc comments on interface imports/export world items are discarded #2294

@lann

Description

@lann
interface i {}

world w {
  /// this is lost
  import i;
}

These comments are discarded during parsing, meaning e.g. this doesn't survive a round-trip through binary WIT encoding.

I spent a little time trying to fix this but I think it needs a breaking change to the package metadata serialization format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    witrelated to the `*.wit` text format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions