diff options
Diffstat (limited to 'node_modules/posthtml-parser/dist/location-tracker.d.ts')
| -rw-r--r-- | node_modules/posthtml-parser/dist/location-tracker.d.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/node_modules/posthtml-parser/dist/location-tracker.d.ts b/node_modules/posthtml-parser/dist/location-tracker.d.ts new file mode 100644 index 0000000..96dfc14 --- /dev/null +++ b/node_modules/posthtml-parser/dist/location-tracker.d.ts @@ -0,0 +1,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 }; |
