Skip to content

Line numbers from TASTy #6542

Closed
Closed
@nicolasstucki

Description

@nicolasstucki

When we have a position on a tree the was loaded from TASTy we have no way to compute line numbers and columns as we only have the offset but no source file.

We have identified the following scenarios where we require the line numbers from TASTy files:

So far the most robust solutions that we have are:

  • Keep the line sizes in the TASTy file. Has a small memory footprint.
  • Keep the actual source in the TASTy file. This would have a large footprint but would also give the possibility of printing better errors for inlined positions.

Which solution should be implemented?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions