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

Function nodeLocStart

backend/plugin/parser/tidb/backup.go:869–881  ·  view source on GitHub ↗
(expr ast.TableExpr)

Source from the content-addressed store, hash-verified

867}
868
869func nodeLocStart(expr ast.TableExpr) int {
870 switch e := expr.(type) {
871 case *ast.TableRef:
872 return e.Loc.Start
873 case *ast.JoinClause:
874 return e.Loc.Start
875 case *ast.SubqueryExpr:
876 return e.Loc.Start
877 case *ast.JsonTableExpr:
878 return e.Loc.Start
879 }
880 return -1
881}
882
883func nodeLocEnd(expr ast.TableExpr) int {
884 switch e := expr.(type) {

Callers 2

writeUpdateSuffixFunction · 0.70
writeDeleteSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected