MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / error

Method error

syntax/parser.go:215–215  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

213// Convenience methods using the current token position.
214func (p *parser) pos() Pos { return p.posAt(p.line, p.col) }
215func (p *parser) error(msg string) { p.errorAt(p.pos(), msg) }
216func (p *parser) syntaxError(msg string) { p.syntaxErrorAt(p.pos(), msg) }
217
218// The stopset contains keywords that start a statement.

Callers 2

funcDeclOrNilMethod · 0.95
pexprMethod · 0.95

Calls 2

posMethod · 0.95
errorAtMethod · 0.80

Tested by

no test coverage detected