UNPKG

413 BTypeScriptView Raw
1import { SourceLocation } from "../../operations/common/SourceLocation";
2import { File } from "../../project/File";
3/**
4 * Find the given source location within this project
5 * @param {string} f file info: Path or File
6 * @param {string} content
7 * @param {number} offset
8 * @return {SourceLocation}
9 */
10export declare function toSourceLocation(f: string | File, content: string, offset: number): SourceLocation;