(source string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List)
| 342 | } |
| 343 | |
| 344 | func dmlTrailingClause(source string, searchStart int, stmtLoc ast.Loc, where ast.ExprNode, option *ast.List) string { |
| 345 | end := trimDMLStatementEnd(source, stmtLoc.End) |
| 346 | start := dmlTailStart(source, searchStart, stmtLoc, where, option) |
| 347 | if start < 0 || start >= end { |
| 348 | return "" |
| 349 | } |
| 350 | return strings.TrimSpace(source[start:end]) |
| 351 | } |
| 352 | |
| 353 | func dmlTailStart(source string, searchStart int, _ ast.Loc, where ast.ExprNode, option *ast.List) int { |
| 354 | if where != nil { |
no test coverage detected