SourceTermAnalysisSystem_vue/node_modules/toml-eslint-parser/lib/tokenizer/locs.d.ts
2026-05-15 10:22:44 +08:00

19 lines
446 B
TypeScript

type Location = {
line: number;
column: number;
};
/**
* A class for getting lines and columns location.
*/
export declare class Locations {
private readonly offsets;
addOffset(offset: number): void;
/**
* Calculate the location of the given index.
* @param index The index to calculate their location.
* @returns The location of the index.
*/
getLocFromIndex(offset: number): Location;
}
export {};