}}}
(context *funcContext, chunk []ast.Stmt)
| 630 | } // }}} |
| 631 | |
| 632 | func compileBlock(context *funcContext, chunk []ast.Stmt) { // {{{ |
| 633 | if len(chunk) == 0 { |
| 634 | return |
| 635 | } |
| 636 | ph := &ast.Node{} |
| 637 | ph.SetLine(sline(chunk[0])) |
| 638 | ph.SetLastLine(eline(chunk[len(chunk)-1])) |
| 639 | context.EnterBlock(labelNoJump, ph) |
| 640 | for i, stmt := range chunk { |
| 641 | lastStmt := true |
| 642 | for j := i + 1; j < len(chunk); j++ { |
| 643 | _, ok := chunk[j].(*ast.LabelStmt) |
| 644 | if !ok { |
| 645 | lastStmt = false |
| 646 | break |
| 647 | } |
| 648 | } |
| 649 | compileStmt(context, stmt, lastStmt) |
| 650 | } |
| 651 | context.LeaveBlock() |
| 652 | } // }}} |
| 653 | |
| 654 | func compileStmt(context *funcContext, stmt ast.Stmt, isLastStmt bool) { // {{{ |
| 655 | switch st := stmt.(type) { |
no test coverage detected
searching dependent graphs…