(node ast.Node)
| 240 | } |
| 241 | |
| 242 | func literalLoc(node ast.Node) ast.Loc { |
| 243 | lit, ok := node.(*ast.Literal) |
| 244 | if !ok { |
| 245 | return ast.Loc{Start: -1, End: -1} |
| 246 | } |
| 247 | return lit.Loc |
| 248 | } |
| 249 | |
| 250 | func findCommaLimitCount(sql string, limitLoc ast.Loc) (countStart, countEnd int, found bool) { |
| 251 | pos := limitLoc.End |
no outgoing calls
no test coverage detected