summaryrefslogtreecommitdiff
path: root/node_modules/posthtml-parser/dist/location-tracker.d.ts
blob: 96dfc149aaaed49a747412398140b54524cae2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
declare type SourceLocation = {
    start: Position;
    end: Position;
};
declare type Position = {
    line: number;
    column: number;
};
declare class LocationTracker {
    private readonly source;
    private lastPosition;
    private lastIndex;
    constructor(source: string);
    getPosition(index: number): Position;
}

export { LocationTracker, Position, SourceLocation };