1 | import type { TextRange } from './TextRange';
|
2 | import type { TokenSequence } from './TokenSequence';
|
3 | import type { DocNode } from '../nodes/DocNode';
|
4 | import type { TSDocMessageId } from './TSDocMessageId';
|
5 |
|
6 |
|
7 |
|
8 | export interface IParserMessageParameters {
|
9 | messageId: TSDocMessageId;
|
10 | messageText: string;
|
11 | textRange: TextRange;
|
12 | tokenSequence?: TokenSequence;
|
13 | docNode?: DocNode;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 | export declare class ParserMessage {
|
19 | |
20 |
|
21 |
|
22 | readonly messageId: TSDocMessageId;
|
23 | |
24 |
|
25 |
|
26 | readonly unformattedText: string;
|
27 | readonly textRange: TextRange;
|
28 | readonly tokenSequence: TokenSequence | undefined;
|
29 | readonly docNode: DocNode | undefined;
|
30 | private _text;
|
31 | constructor(parameters: IParserMessageParameters);
|
32 | /**
|
33 | * Generates a line/column prefix. Example with line=2 and column=5
|
34 | * and message="An error occurred":
|
35 | * ```
|
36 | * "(2,5): An error occurred"
|
37 | * ```
|
38 | */
|
39 | private static _formatMessageText;
|
40 | /**
|
41 | * The message text.
|
42 | */
|
43 | get text(): string;
|
44 | toString(): string;
|
45 | }
|
46 | //# sourceMappingURL=ParserMessage.d.ts.map |
\ | No newline at end of file |