MCPcopy Create free account
hub / github.com/foxcpp/maddy / Next

Method Next

framework/config/lexer/dispenser.go:74–80  ·  view source on GitHub ↗

Next loads the next token. Returns true if a token was loaded; false otherwise. If false, all tokens have been consumed.

()

Source from the content-addressed store, hash-verified

72// was loaded; false otherwise. If false, all tokens
73// have been consumed.
74func (d *Dispenser) Next() bool {
75 if d.cursor < len(d.tokens)-1 {
76 d.cursor++
77 return true
78 }
79 return false
80}
81
82// NextArg loads the next token if it is on the same
83// line. Returns true if a token was loaded; false

Callers 8

TestDispenser_Val_NextFunction · 0.95
TestDispenser_NextArgFunction · 0.95
TestDispenser_NextLineFunction · 0.95
TestDispenser_NextBlockFunction · 0.95
TestDispenser_ArgsFunction · 0.95
NextBlockMethod · 0.95
readNodesMethod · 0.45

Calls

no outgoing calls

Tested by 6

TestDispenser_Val_NextFunction · 0.76
TestDispenser_NextArgFunction · 0.76
TestDispenser_NextLineFunction · 0.76
TestDispenser_NextBlockFunction · 0.76
TestDispenser_ArgsFunction · 0.76