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

Method blockFollow

parser.go:286–294  ·  view source on GitHub ↗
(withUntil bool)

Source from the content-addressed store, hash-verified

284}
285
286func (p *parser) blockFollow(withUntil bool) bool {
287 switch p.t {
288 case tkElse, tkElseif, tkEnd, tkEOS:
289 return true
290 case tkUntil:
291 return withUntil
292 }
293 return false
294}
295
296func (p *parser) statementList() {
297 for !p.blockFollow(true) {

Callers 4

statementListMethod · 0.95
testThenBlockMethod · 0.95
labelStatementMethod · 0.95
returnStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected