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

Method assert

scanner.go:80–80  ·  view source on GitHub ↗
(cond bool)

Source from the content-addressed store, hash-verified

78}
79
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) }

Callers 4

incrementLineNumberMethod · 0.95
skipSeparatorMethod · 0.95
readNumberMethod · 0.95
lookAheadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected