FileLine reports whether the change identified by file and line should be enabled. If the change should be printed, FileLine prints a one-line report to w.
(w Writer, file string, line int)
| 375 | // FileLine reports whether the change identified by file and line should be enabled. |
| 376 | // If the change should be printed, FileLine prints a one-line report to w. |
| 377 | func (m *Matcher) FileLine(w Writer, file string, line int) bool { |
| 378 | if m == nil { |
| 379 | return true |
| 380 | } |
| 381 | return m.fileLine(w, file, line) |
| 382 | } |
| 383 | |
| 384 | // fileLine does the real work for FileLine. |
| 385 | // This lets FileLine's body handle m == nil and potentially be inlined. |