Scan is a thin wrapper around the bufio.Scanner Scan() function
()
| 21 | |
| 22 | // Scan is a thin wrapper around the bufio.Scanner Scan() function |
| 23 | func (s *MakefileScanner) Scan() bool { |
| 24 | s.LineNumber++ |
| 25 | scanResult := s.Scanner.Scan() |
| 26 | if !scanResult && s.Scanner.Err() == nil { |
| 27 | s.Finished = true |
| 28 | } |
| 29 | return scanResult |
| 30 | } |
| 31 | |
| 32 | // Close closes all open handles the scanner has |
| 33 | func (s *MakefileScanner) Close() { |
no outgoing calls
no test coverage detected