sussudio
Version:
An unofficial VS Code Internal API
37 lines (36 loc) • 1.19 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export declare const enum ValidationState {
OK = 0,
Info = 1,
Warning = 2,
Error = 3,
Fatal = 4
}
export declare class ValidationStatus {
private _state;
constructor();
get state(): ValidationState;
set state(value: ValidationState);
isOK(): boolean;
isFatal(): boolean;
}
export interface IProblemReporter {
info(message: string): void;
warn(message: string): void;
error(message: string): void;
fatal(message: string): void;
status: ValidationStatus;
}
export declare abstract class Parser {
private _problemReporter;
constructor(problemReporter: IProblemReporter);
reset(): void;
get problemReporter(): IProblemReporter;
info(message: string): void;
warn(message: string): void;
error(message: string): void;
fatal(message: string): void;
}