Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 479 Bytes
package ravendb
import "strings"
func documentQueryHelperAddSpaceIfNeeded(previousToken queryToken, currentToken queryToken, writer *strings.Builder) {
if previousToken == nil {
return
}
skip := false
if _, ok := previousToken.(*openSubclauseToken); ok {
skip = true
} else if _, ok := currentToken.(*closeSubclauseToken); ok {
skip = true
} else if currentToken == intersectMarkerTokenInstance {
skip = true
}
if skip {
return
}
writer.WriteString(" ")
}
You can’t perform that action at this time.