MCPcopy Create free account
hub / github.com/CloudyKit/jet / String

Method String

node.go:385–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383}
384
385func (set *SetNode) String() string {
386 var s = ""
387
388 for i, v := range set.Left {
389 if i > 0 {
390 s += ", "
391 }
392 s += v.String()
393 }
394
395 if set.Let {
396 s += ":="
397 } else {
398 s += "="
399 }
400
401 for i, v := range set.Right {
402 if i > 0 {
403 s += ", "
404 }
405 s += v.String()
406 }
407
408 return s
409}
410
411// BranchNode is the common representation of if, range, and with.
412type BranchNode struct {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected