1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import ts from 'typescript';
|
10 | import { ErrorCode } from './error_code';
|
11 | export declare class FatalDiagnosticError {
|
12 | readonly code: ErrorCode;
|
13 | readonly node: ts.Node;
|
14 | readonly message: string | ts.DiagnosticMessageChain;
|
15 | readonly relatedInformation?: ts.DiagnosticRelatedInformation[] | undefined;
|
16 | constructor(code: ErrorCode, node: ts.Node, message: string | ts.DiagnosticMessageChain, relatedInformation?: ts.DiagnosticRelatedInformation[] | undefined);
|
17 | toDiagnostic(): ts.DiagnosticWithLocation;
|
18 | }
|
19 | export declare function makeDiagnostic(code: ErrorCode, node: ts.Node, messageText: string | ts.DiagnosticMessageChain, relatedInformation?: ts.DiagnosticRelatedInformation[]): ts.DiagnosticWithLocation;
|
20 | export declare function makeDiagnosticChain(messageText: string, next?: ts.DiagnosticMessageChain[]): ts.DiagnosticMessageChain;
|
21 | export declare function makeRelatedInformation(node: ts.Node, messageText: string): ts.DiagnosticRelatedInformation;
|
22 | export declare function isFatalDiagnosticError(err: any): err is FatalDiagnosticError;
|