web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
350 B

  1. export declare type SourceLocation = {
  2. line: number;
  3. column: number;
  4. };
  5. export default 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(line);
  12. }