UNPKG

685 BTypeScriptView Raw
1import * as ts from 'typescript';
2import { FindingFilterFactory, FindingFilter, FindingFilterContext, LineSwitchParser, LineSwitchParserContext, RawLineSwitch } from '@fimbul/ymir';
3export declare const LINE_SWITCH_REGEX: RegExp;
4export declare class LineSwitchFilterFactory implements FindingFilterFactory {
5 private parser;
6 constructor(parser: LineSwitchParser);
7 create(context: FindingFilterContext): FindingFilter;
8 getDisabledRanges(context: FindingFilterContext): Map<string, ts.TextRange[]>;
9 private parseLineSwitches;
10}
11export declare class DefaultLineSwitchParser implements LineSwitchParser {
12 parse(context: LineSwitchParserContext): RawLineSwitch[];
13}