Mark a path as read.
(filePath, cwd)
| 50 | |
| 51 | /** Mark a path as read. */ |
| 52 | recordRead(filePath, cwd) { |
| 53 | if (this.disabled) return; |
| 54 | const c = this._canon(filePath, cwd); |
| 55 | if (!c) return; |
| 56 | this.readPaths.add(c); |
| 57 | // Reading after a warning lifts the warning (but doesn't auto-clear written) |
| 58 | this.warnedPaths.delete(c); |
| 59 | } |
| 60 | |
| 61 | /** Mark a path as written (so write→write doesn't trigger guard). */ |
| 62 | recordWrite(filePath, cwd) { |
no test coverage detected