(source string, end int)
| 363 | } |
| 364 | |
| 365 | func trimDMLStatementEnd(source string, end int) int { |
| 366 | if end > len(source) { |
| 367 | end = len(source) |
| 368 | } |
| 369 | for end > 0 { |
| 370 | switch source[end-1] { |
| 371 | case ';', ' ', '\t', '\r', '\n': |
| 372 | end-- |
| 373 | default: |
| 374 | return end |
| 375 | } |
| 376 | } |
| 377 | return end |
| 378 | } |
| 379 | |
| 380 | func findKeywordBefore(source, keyword string, before int, after int) int { |
| 381 | if before > len(source) { |
no outgoing calls
no test coverage detected