Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 GO-2023-1702 GO-2023-1702: Infinite loop in parsing in go/scanner Changes in this version + func PrintError(w io.Writer, err error) + type Error struct + Msg string + Pos token.Position + func (e Error) Error() string + type ErrorHandler func(pos token.Position, msg string) + type ErrorList []*Error + func (p *ErrorList) Add(pos token.Position, msg string) + func (p *ErrorList) RemoveMultiples() + func (p *ErrorList) Reset() + func (p ErrorList) Err() error + func (p ErrorList) Error() string + func (p ErrorList) Len() int + func (p ErrorList) Less(i, j int) bool + func (p ErrorList) Sort() + func (p ErrorList) Swap(i, j int) + type Mode uint + const ScanComments + type Scanner struct + ErrorCount int + func (s *Scanner) Init(file *token.File, src []byte, err ErrorHandler, mode Mode) + func (s *Scanner) Scan() (pos token.Pos, tok token.Token, lit string)