File size: 1,463 Bytes
6abff73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { TextRange } from './TextRange';
import type { Token } from './Token';
import { DocComment } from '../nodes';
import type { TSDocConfiguration } from '../configuration/TSDocConfiguration';
import { ParserMessageLog } from './ParserMessageLog';
/**
 * An internal data structure that tracks all the state being built up by the various
 * parser stages.
 */
export declare class ParserContext {
    /**
     * The configuration that was provided for the TSDocParser.
     */
    readonly configuration: TSDocConfiguration;
    /**
     * The `sourceRange` indicates the start and end of the original input that was parsed.
     */
    readonly sourceRange: TextRange;
    /**
     * The text range starting from the opening `/**` and ending with
     * the closing `*\/` delimiter.
     */
    commentRange: TextRange;
    /**
     * The text ranges corresponding to the lines of content inside the comment.
     */
    lines: TextRange[];
    /**
     * A complete list of all tokens that were extracted from the input lines.
     */
    tokens: Token[];
    /**
     * The parsed doc comment object.  This is the primary output of the parser.
     */
    readonly docComment: DocComment;
    /**
     * A queryable log that reports warnings and error messages that occurred during parsing.
     */
    readonly log: ParserMessageLog;
    constructor(configuration: TSDocConfiguration, sourceRange: TextRange);
}
//# sourceMappingURL=ParserContext.d.ts.map