Documentation

StrataDDM.Util.SourceRange

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 }.

Instances For
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        Instances For
          Equations
          Instances For

            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.
            Instances For