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

Method checkNext

scanner.go:147–153  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

145}
146
147func (s *scanner) checkNext(str string) bool {
148 if s.current == 0 || !strings.ContainsRune(str, s.current) {
149 return false
150 }
151 s.saveAndAdvance()
152 return true
153}
154
155func (s *scanner) skipSeparator() int { // TODO is this the right name?
156 i, c := 0, s.current

Callers 2

readNumberMethod · 0.95
scanMethod · 0.95

Calls 1

saveAndAdvanceMethod · 0.95

Tested by

no test coverage detected