(source string, searchStart int, _ ast.Loc, where ast.ExprNode, option *ast.List)
| 351 | } |
| 352 | |
| 353 | func dmlTailStart(source string, searchStart int, _ ast.Loc, where ast.ExprNode, option *ast.List) int { |
| 354 | if where != nil { |
| 355 | if start := findKeywordBefore(source, "WHERE", dmlNodeLoc(where).Start, searchStart); start >= 0 { |
| 356 | return start |
| 357 | } |
| 358 | } |
| 359 | if option != nil { |
| 360 | return findKeywordAfter(source, "OPTION", searchStart, len(source)) |
| 361 | } |
| 362 | return -1 |
| 363 | } |
| 364 | |
| 365 | func trimDMLStatementEnd(source string, end int) int { |
| 366 | if end > len(source) { |
no test coverage detected