Skip to content

Fix srcloc's tostring to be more informative #677

Open
@blerner

Description

@blerner

Currently we only have two outputs for srcloc: "line ##, column ##", or "file XXX: line ##, column ##". It would be nice to also show the extent of the srcloc, along the lines of "file:startLine:startCol--endLine:endCol". This can't be done with just the boolean flag we currently have, but making yet another method would be silly. Figure out how to streamline this into the existing code, while not breaking the compiler.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions