MCPcopy Create free account
hub / github.com/CloudyKit/jet / next

Method next

parse.go:90–97  ·  view source on GitHub ↗

next returns the next token.

()

Source from the content-addressed store, hash-verified

88
89// next returns the next token.
90func (t *Template) next() item {
91 if t.peekCount > 0 {
92 t.peekCount--
93 } else {
94 t.token[0] = t.lex.nextItem()
95 }
96 return t.token[t.peekCount]
97}
98
99// backup backs the input stream up one token.
100func (t *Template) backup() {

Callers 6

nextNonSpaceMethod · 0.95
peekNonSpaceMethod · 0.95
parseTemplateMethod · 0.95
operandMethod · 0.95
parseControlMethod · 0.95
termMethod · 0.95

Calls 1

nextItemMethod · 0.80

Tested by

no test coverage detected