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

Function hasMultipleNonEmptyStatements

backend/plugin/parser/tsql/completion.go:1728–1740  ·  view source on GitHub ↗
(statements []base.Statement)

Source from the content-addressed store, hash-verified

1726}
1727
1728func hasMultipleNonEmptyStatements(statements []base.Statement) bool {
1729 seenNonEmpty := false
1730 for _, statement := range statements {
1731 if statement.Empty {
1732 continue
1733 }
1734 if seenNonEmpty {
1735 return true
1736 }
1737 seenNonEmpty = true
1738 }
1739 return false
1740}
1741
1742func (c *Completer) collectCompletionScopeReferences(completionContext *omnimssql.CompletionContext) {
1743 if completionContext == nil || completionContext.Scope == nil {

Callers 1

skipHeadingSQLsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected