MCPcopy Index your code
hub / github.com/Shopify/go-lua / errorExpected

Method errorExpected

scanner.go:82–82  ·  view source on GitHub ↗
(t rune)

Source from the content-addressed store, hash-verified

80func (s *scanner) assert(cond bool) { s.l.assert(cond) }
81func (s *scanner) syntaxError(message string) { s.scanError(message, s.t) }
82func (s *scanner) errorExpected(t rune) { s.syntaxError(s.tokenToString(t) + " expected") }
83func (s *scanner) numberError() { s.scanError("malformed number", tkNumber) }
84func isNewLine(c rune) bool { return c == '\n' || c == '\r' }
85func isDecimal(c rune) bool { return '0' <= c && c <= '9' }

Callers 2

checkMethod · 0.95
checkMatchMethod · 0.95

Calls 2

syntaxErrorMethod · 0.95
tokenToStringMethod · 0.95

Tested by

no test coverage detected