MCPcopy Index your code
hub / github.com/google/codesearch / or

Method or

index/regexp.go:46–48  ·  view source on GitHub ↗

or returns the query q OR r, possibly reusing q's and r's storage.

(r *Query)

Source from the content-addressed store, hash-verified

44
45// or returns the query q OR r, possibly reusing q's and r's storage.
46func (q *Query) or(r *Query) *Query {
47 return q.andOr(r, QOr)
48}
49
50// andOr returns the query q AND r or q OR r, possibly reusing q's and r's storage.
51// It works hard to avoid creating unnecessarily complicated structures.

Callers 2

andTrigramsMethod · 0.80
alternateFunction · 0.80

Calls 1

andOrMethod · 0.95

Tested by

no test coverage detected