MCPcopy Index your code
hub / github.com/yuin/gopher-lua / compileChunk

Function compileChunk

compile.go:618–630  ·  view source on GitHub ↗

* FuncContext }}} */

(context *funcContext, chunk []ast.Stmt, untilFollows bool)

Source from the content-addressed store, hash-verified

616/* FuncContext }}} */
617
618func compileChunk(context *funcContext, chunk []ast.Stmt, untilFollows bool) { // {{{
619 for i, stmt := range chunk {
620 lastStmt := true
621 for j := i + 1; j < len(chunk); j++ {
622 _, ok := chunk[j].(*ast.LabelStmt)
623 if !ok {
624 lastStmt = false
625 break
626 }
627 }
628 compileStmt(context, stmt, lastStmt && !untilFollows)
629 }
630} // }}}
631
632func compileBlock(context *funcContext, chunk []ast.Stmt) { // {{{
633 if len(chunk) == 0 {

Callers 6

compileStmtFunction · 0.85
compileWhileStmtFunction · 0.85
compileRepeatStmtFunction · 0.85
compileNumberForStmtFunction · 0.85
compileGenericForStmtFunction · 0.85
compileFunctionExprFunction · 0.85

Calls 1

compileStmtFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…