(node ast.Node)
| 412 | } |
| 413 | |
| 414 | func isRestorableDML(node ast.Node) bool { |
| 415 | switch node.(type) { |
| 416 | case *ast.UpdateStmt, *ast.DeleteStmt: |
| 417 | return true |
| 418 | default: |
| 419 | return false |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | func statementPositions(start *storepb.Position, source string, loc ast.Loc) (*storepb.Position, *storepb.Position) { |
| 424 | return positionFromByteOffset(start, source, loc.Start), positionFromByteOffset(start, source, dmlEndOffset(source, loc)) |
no outgoing calls
no test coverage detected