UNPKG

852 BTypeScriptView Raw
1import { File, Location, Position, Range } from '@stryker-mutator/api/core';
2export declare function isLineBreak(ch: number): boolean;
3export default class SourceFile {
4 file: File;
5 private readonly lineStarts;
6 constructor(file: File);
7 get name(): string;
8 get content(): string;
9 getLocation(range: Range): Location;
10 getPosition(pos: number): Position;
11 /**
12 * Performs a binary search, finding the index at which 'value' occurs in 'array'.
13 * If no such index is found, returns the 2's-complement of first index at which
14 * number[index] exceeds number.
15 * @param array A sorted array whose first element must be no larger than number
16 * @param number The value to be searched for in the array.
17 */
18 private binarySearch;
19 private computeLineStarts;
20}
21//# sourceMappingURL=SourceFile.d.ts.map
\No newline at end of file