MCPcopy Create free account
hub / github.com/bytebase/bytebase / nodeLocOf

Function nodeLocOf

backend/plugin/db/mysql/query.go:241–243  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

239}
240
241func nodeLocOf(node ast.Node) ast.Loc {
242 return mysqlNodeLoc(node)
243}
244
245func 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') {

Callers 1

rewriteMySQLSelectLimitFunction · 0.70

Calls 1

mysqlNodeLocFunction · 0.85

Tested by

no test coverage detected