Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractLineMatcher

Hierarchy

Index

Constructors

constructor

Properties

Protected activePattern

activePattern: undefined | ProblemPattern

Protected activePatternIndex

activePatternIndex: number = 0

Protected cachedProblemData

cachedProblemData: ProblemData

Protected matcher

Protected patterns

patterns: ProblemPattern[] = []

Accessors

patternCount

  • get patternCount(): number

Methods

Private appendProperty

  • appendProperty(data: ProblemData, property: "kind" | "file" | "location" | "line" | "character" | "endLine" | "endCharacter" | "message" | "severity" | "code", pattern: ProblemPattern, matches: RegExpExecArray, trim?: boolean): void

Private createRange

  • createRange(startLine: number, startColumn: undefined | number, endLine: undefined | number, endColumn: undefined | number): Range

Protected doOneLineMatch

  • doOneLineMatch(line: string): boolean

Protected fillProblemData

Private fillProperty

  • fillProperty(data: ProblemData, property: "kind" | "file" | "location" | "line" | "character" | "endLine" | "endCharacter" | "message" | "severity" | "code", pattern: ProblemPattern, matches: RegExpExecArray, trim?: boolean): void

Protected getEmptyProblemData

Private getLocation

Protected getMarkerMatch

Private getResource

Private getSeverity

Private getZeroBasedRangeIndex

  • getZeroBasedRangeIndex(ind: number): number

Protected isLastPatternLoop

  • isLastPatternLoop(): boolean

Protected isUsingTheLastPattern

  • isUsingTheLastPattern(): boolean

Abstract match

Protected nextProblemPattern

  • nextProblemPattern(): void

Private parseLocationInfo

  • parseLocationInfo(value: string): null | Range

Protected resetActivePatternIndex

  • resetActivePatternIndex(defaultIndex?: number): void

Protected resetCachedProblemData

  • resetCachedProblemData(): void