(list *ast.List)
| 549 | } |
| 550 | |
| 551 | func listLoc(list *ast.List) ast.Loc { |
| 552 | if list == nil || len(list.Items) == 0 { |
| 553 | return ast.NoLoc() |
| 554 | } |
| 555 | return ast.Loc{ |
| 556 | Start: dmlNodeLoc(list.Items[0]).Start, |
| 557 | End: dmlNodeLoc(list.Items[len(list.Items)-1]).End, |
| 558 | } |
| 559 | } |
| 560 | |
| 561 | func dmlNodeLoc(node ast.Node) ast.Loc { |
| 562 | if common.IsNil(node) { |
no test coverage detected