Source location information in the DDM is defined
by a range of bytes in a UTF-8 string with the input
Line/column information can be constructed from a
Lean.FileMap
As an example, in the string "123abc\ndef", the string
"abc" has the position {start := 3, stop := 6 } while
"def" has the position {start := 7, stop := 10 }.
- start : String.Pos.Raw
The starting offset of the source range.
- stop : String.Pos.Raw
One past the end of the range.
Instances For
Equations
Instances For
@[implicit_reducible]
@[implicit_reducible]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[implicit_reducible]
Equations
Equations
- StrataDDM.SourceRange.none = { start := 0, stop := 0 }
Instances For
@[implicit_reducible]
Equations
- StrataDDM.SourceRange.instToFormat = { format := fun (fr : StrataDDM.SourceRange) => Std.format fr.start ++ Std.format "-" ++ Std.format fr.stop }
Format a SourceRange as a string using a FileMap for line:column conversion. Renders location information in a format VSCode understands. Returns "path:line:col-col" if on same line, otherwise "path:line:col".
Equations
- One or more equations did not get rendered due to their size.