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

Method numberError

scanner.go:83–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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' }
86

Callers 1

readNumberMethod · 0.95

Calls 1

scanErrorMethod · 0.95

Tested by

no test coverage detected