Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
350 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.