UNPKG

486 BTypeScriptView Raw
1/**
2 * A specific location within a source file.
3 *
4 * This is always associated with a {@link SourceSpan} which indicates *which*
5 * file it refers to.
6 *
7 * @category Logger
8 */
9export interface SourceLocation {
10 /**
11 * The 0-based index of this location within its source file, in terms of
12 * UTF-16 code units.
13 */
14 offset: number;
15
16 /** The 0-based line number of this location. */
17 line: number;
18
19 /** The 0-based column number of this location. */
20 column: number;
21}