Skip to content

Find lines to highlight in examples API docs using AST #1357

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

The lines of examples that reference the documented API element are highlighted in the generated API docs. However, this is currently done by a simple text search, so we might also highlight some wrong lines or miss lines that still belong to a call if it's spread over multiple lines.

Desired solution

Use the AST instead to find references, and the CST to find the relevant region to highlight.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions