utils/node_modules/@microsoft/tsdoc/lib/parser/ParserMessageLog.d.ts

33 lines
1.2 KiB
TypeScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
import { ParserMessage } from './ParserMessage';
import { TextRange } from './TextRange';
import { TokenSequence } from './TokenSequence';
import { DocNode } from '../nodes/DocNode';
import { DocErrorText } from '../nodes/DocErrorText';
import { TSDocMessageId } from './TSDocMessageId';
/**
* Used to report errors and warnings that occurred during parsing.
*/
export declare class ParserMessageLog {
private _messages;
/**
* The unfiltered list of all messages.
*/
get messages(): ReadonlyArray<ParserMessage>;
/**
* Append a message to the log.
*/
addMessage(parserMessage: ParserMessage): void;
/**
* Append a message associated with a TextRange.
*/
addMessageForTextRange(messageId: TSDocMessageId, messageText: string, textRange: TextRange): void;
/**
* Append a message associated with a TokenSequence.
*/
addMessageForTokenSequence(messageId: TSDocMessageId, messageText: string, tokenSequence: TokenSequence, docNode?: DocNode): void;
/**
* Append a message associated with a TokenSequence.
*/
addMessageForDocErrorText(docErrorText: DocErrorText): void;
}
//# sourceMappingURL=ParserMessageLog.d.ts.map