(node ast.Node, offset int)
| 72 | type omniLocOffsetter int |
| 73 | |
| 74 | func offsetOmniLocs(node ast.Node, offset int) { |
| 75 | if offset == 0 { |
| 76 | return |
| 77 | } |
| 78 | ast.Walk(omniLocOffsetter(offset), node) |
| 79 | } |
| 80 | |
| 81 | func (o omniLocOffsetter) Visit(node ast.Node) ast.Visitor { |
| 82 | if node == nil { |
no test coverage detected