@fimbul/ymir
Advanced tools
Comparing version 0.17.0 to 0.18.0-dev.20190106
{ | ||
"name": "@fimbul/ymir", | ||
"version": "0.17.0", | ||
"version": "0.18.0-dev.20190106", | ||
"description": "Core library for the Fimbullinter project", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -307,5 +307,6 @@ import 'reflect-metadata'; | ||
filter(finding: Finding): boolean; | ||
reportUseless(severity: Severity): ReadonlyArray<Finding>; | ||
} | ||
export interface LineSwitchParser { | ||
parse(context: LineSwitchParserContext): ReadonlyMap<string, ReadonlyArray<RawLineSwitch>>; | ||
parse(context: LineSwitchParserContext): ReadonlyArray<RawLineSwitch>; | ||
} | ||
@@ -316,9 +317,16 @@ export declare abstract class LineSwitchParser { | ||
sourceFile: ts.SourceFile; | ||
ruleNames: ReadonlyArray<string>; | ||
getCommentAtPosition(pos: number): ts.CommentRange | undefined; | ||
} | ||
export interface RawLineSwitch { | ||
readonly rules: ReadonlyArray<RawLineSwitchRule>; | ||
readonly enable: boolean; | ||
readonly position: number; | ||
readonly pos: number; | ||
readonly end?: number; | ||
readonly location: Readonly<ts.TextRange>; | ||
} | ||
export interface RawLineSwitchRule { | ||
readonly predicate: string | RegExp | ((ruleName: string) => boolean); | ||
readonly location?: Readonly<ts.TextRange>; | ||
readonly fixLocation?: Readonly<ts.TextRange>; | ||
} | ||
export interface FileFilterContext { | ||
@@ -325,0 +333,0 @@ program: ts.Program; |
Sorry, the diff of this file is not supported yet
36399
527