Beispiel #1
0
// ErrChar reports an error for char ch. ErrChar is safe for concurrent use by
// multiple goroutines.
func (c *Report) ErrChar(ch lex.Char, format string, arg ...interface{}) {
	c.Err(ch.Pos(), format, arg...)
}
Beispiel #2
0
func (l *lexer) errChar(c lex.Char, msg string, arg ...interface{}) {
	l.err(c.Pos(), msg, arg...)
}