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

Method next

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

Source from the content-addressed store, hash-verified

504}
505
506func (s *scanner) next() {
507 s.lastLine = s.lineNumber
508 if s.lookAheadToken.t != tkEOS {
509 s.token = s.lookAheadToken
510 s.lookAheadToken.t = tkEOS
511 } else {
512 s.token = s.scan()
513 }
514}
515
516func (s *scanner) lookAhead() rune {
517 s.l.assert(s.lookAheadToken.t == tkEOS)

Callers 1

testNextMethod · 0.95

Calls 1

scanMethod · 0.95

Tested by

no test coverage detected