MCPcopy Index your code
hub / github.com/tidwall/tile38 / String

Method String

internal/server/expression.go:36–59  ·  view source on GitHub ↗

String representation, helpful in logging.

()

Source from the content-addressed store, hash-verified

34
35// String representation, helpful in logging.
36func (e *areaExpression) String() (res string) {
37 if e.obj != nil {
38 res = e.obj.String()
39 } else {
40 var chStrings []string
41 for _, c := range e.children {
42 chStrings = append(chStrings, c.String())
43 }
44 switch e.op {
45 case NOOP:
46 res = "empty operator"
47 case AND:
48 res = "(" + strings.Join(chStrings, " "+tokenAND+" ") + ")"
49 case OR:
50 res = "(" + strings.Join(chStrings, " "+tokenOR+" ") + ")"
51 default:
52 res = "unknown operator"
53 }
54 }
55 if e.negate {
56 res = tokenNOT + " " + res
57 }
58 return
59}
60
61// Return boolean value modulo negate field of the expression.
62func (e *areaExpression) maybeNegate(val bool) bool {

Callers 15

cmdScanMethod · 0.45
netServeMethod · 0.45
handleInputCommandMethod · 0.45
OKMessageFunction · 0.45
aofshrinkMethod · 0.45
cmdOUTPUTMethod · 0.45
cmdPublishMethod · 0.45
liveSubscriptionMethod · 0.45
cmdKEYSMethod · 0.45
FenceMatchFunction · 0.45
fenceMatchFunction · 0.45
globMatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected