(node ast.Node)
| 228 | } |
| 229 | |
| 230 | func extractLimitValue(node ast.Node) int { |
| 231 | lit, ok := node.(*ast.Literal) |
| 232 | if !ok || lit.Kind != ast.LitInt { |
| 233 | return -1 |
| 234 | } |
| 235 | val, err := strconv.Atoi(lit.Value) |
| 236 | if err != nil { |
| 237 | return -1 |
| 238 | } |
| 239 | return val |
| 240 | } |
| 241 | |
| 242 | func literalLoc(node ast.Node) ast.Loc { |
| 243 | lit, ok := node.(*ast.Literal) |
no outgoing calls
no test coverage detected