(line: number)
| 16 | } |
| 17 | // Returns [Line, EndsInOperator] |
| 18 | public addLineToCache(line: number): [string, boolean] { |
| 19 | const cleaned = cleanLine(this.getLine(line)); |
| 20 | const endsInOperator = doesLineEndInOperator(cleaned); |
| 21 | this.lineCache.set(line, cleaned); |
| 22 | this.endsInOperatorCache.set(line, endsInOperator); |
| 23 | return [cleaned, endsInOperator]; |
| 24 | } |
| 25 | public getEndsInOperatorFromCache(line: number): boolean { |
| 26 | const lineInCache = this.endsInOperatorCache.get(line); |
| 27 | if (lineInCache === undefined) { |
no test coverage detected