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

Function nodeLocStart

backend/plugin/parser/mysql/backup.go:408–416  ·  view source on GitHub ↗
(expr ast.TableExpr)

Source from the content-addressed store, hash-verified

406}
407
408func nodeLocStart(expr ast.TableExpr) int {
409 switch e := expr.(type) {
410 case *ast.TableRef:
411 return e.Loc.Start
412 case *ast.JoinClause:
413 return e.Loc.Start
414 }
415 return -1
416}
417
418func nodeLocEnd(expr ast.TableExpr) int {
419 switch e := expr.(type) {

Callers 2

writeUpdateSuffixFunction · 0.70
writeDeleteSuffixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected