(sql string, loc ast.Loc)
| 243 | } |
| 244 | |
| 245 | func trimMySQLLocSpace(sql string, loc ast.Loc) ast.Loc { |
| 246 | for loc.Start < loc.End && loc.Start < len(sql) && (sql[loc.Start] == ' ' || sql[loc.Start] == '\t' || sql[loc.Start] == '\n' || sql[loc.Start] == '\r') { |
| 247 | loc.Start++ |
| 248 | } |
| 249 | for loc.End > loc.Start && loc.End <= len(sql) && (sql[loc.End-1] == ' ' || sql[loc.End-1] == '\t' || sql[loc.End-1] == '\n' || sql[loc.End-1] == '\r') { |
| 250 | loc.End-- |
| 251 | } |
| 252 | return loc |
| 253 | } |
| 254 | |
| 255 | func maxMySQLLocEndBeforeTailClauses(node ast.Node) int { |
| 256 | maxEnd := -1 |
no outgoing calls
no test coverage detected