(source string, loc ast.Loc)
| 542 | } |
| 543 | |
| 544 | func dmlEndOffset(source string, loc ast.Loc) int { |
| 545 | if loc.End >= 0 && loc.End < len(source) && source[loc.End] == ';' { |
| 546 | return loc.End |
| 547 | } |
| 548 | return loc.End - 1 |
| 549 | } |
| 550 | |
| 551 | func listLoc(list *ast.List) ast.Loc { |
| 552 | if list == nil || len(list.Items) == 0 { |
no outgoing calls
no test coverage detected