31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
import { TextRange } from './TextRange';
|
|
import { DocComment } from '../nodes';
|
|
import { ParserMessageLog } from './ParserMessageLog';
|
|
/**
|
|
* An internal data structure that tracks all the state being built up by the various
|
|
* parser stages.
|
|
*/
|
|
var ParserContext = /** @class */ (function () {
|
|
function ParserContext(configuration, sourceRange) {
|
|
/**
|
|
* The text range starting from the opening `/**` and ending with
|
|
* the closing `*\/` delimiter.
|
|
*/
|
|
this.commentRange = TextRange.empty;
|
|
/**
|
|
* The text ranges corresponding to the lines of content inside the comment.
|
|
*/
|
|
this.lines = [];
|
|
/**
|
|
* A complete list of all tokens that were extracted from the input lines.
|
|
*/
|
|
this.tokens = [];
|
|
this.configuration = configuration;
|
|
this.sourceRange = sourceRange;
|
|
this.docComment = new DocComment({ configuration: this.configuration });
|
|
this.log = new ParserMessageLog();
|
|
}
|
|
return ParserContext;
|
|
}());
|
|
export { ParserContext };
|
|
//# sourceMappingURL=ParserContext.js.map
|