UNPKG

@madie/cql-antlr-parser

Version:
18 lines 1.01 kB
import { ParserRuleContext } from "antlr4ts/ParserRuleContext"; import { ParseTree } from "antlr4ts/tree"; export default class AntlrUtils { static SINGLE_LINE_COMMENT_REGEX: RegExp; static MULTI_LINE_COMMENT_REGEX: RegExp; static findText(ctx: ParserRuleContext): string | undefined; static findChildName(children: ParseTree[] | undefined): string | undefined; static findChildExpression(children: ParseTree[] | undefined): string | undefined; static findChildText(children: ParseTree[] | undefined, lexerType: number, occurrence?: number): string | undefined; static findChild(children: ParseTree[] | undefined, lexerType: number, occurrence: number): ParseTree | undefined; /** * Removes the comment characters from comments and also removes any leading and trailing spaces * @param comment -> a comment with comment characters */ static formatComment(comment: string): string; private static isTargetType; } //# sourceMappingURL=AntlrUtils.d.ts.map