3adfb4a32b472176d4c130a0647b78bc2efdfb3731e8912e039c0c85de4dbbe33e1664ead2bfe7e54584b59cc72709a19ee9061586fe7edcf70f01d0d94538 376 B

12345678910111213
  1. export declare type SourceLocation = {
  2. line: number;
  3. column: number;
  4. };
  5. export declare class LinesAndColumns {
  6. private string;
  7. private offsets;
  8. constructor(string: string);
  9. locationForIndex(index: number): SourceLocation | null;
  10. indexForLocation(location: SourceLocation): number | null;
  11. private lengthOfLine;
  12. }
  13. export default LinesAndColumns;