}}}
(context *funcContext, stmt *ast.LabelStmt, isLastStmt bool)
| 1122 | } // }}} |
| 1123 | |
| 1124 | func compileLabelStmt(context *funcContext, stmt *ast.LabelStmt, isLastStmt bool) { // {{{ |
| 1125 | labelId := context.NewLabel() |
| 1126 | label := newLabelDesc(labelId, stmt.Name, context.Code.LastPC(), sline(stmt), context.BlockLocalVarsCount()) |
| 1127 | context.AddNamedLabel(label) |
| 1128 | if isLastStmt { |
| 1129 | label.SetNumActiveLocalVars(context.Block.Parent.LocalVarsCount()) |
| 1130 | } |
| 1131 | context.ResolveForwardGoto(label) |
| 1132 | } // }}} |
| 1133 | |
| 1134 | func compileGotoStmt(context *funcContext, stmt *ast.GotoStmt) { // {{{ |
| 1135 | context.Code.AddABC(OP_CLOSE, 0, 0, 0, sline(stmt)) |
no test coverage detected
searching dependent graphs…