Function
hasMultipleNonEmptyStatements
(statements []base.Statement)
Source from the content-addressed store, hash-verified
| 1726 | } |
| 1727 | |
| 1728 | func 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 | |
| 1742 | func (c *Completer) collectCompletionScopeReferences(completionContext *omnimssql.CompletionContext) { |
| 1743 | if completionContext == nil || completionContext.Scope == nil { |
Tested by
no test coverage detected