MCPcopy Create free account
hub / github.com/expr-lang/expr / String

Method String

ast/print.go:251–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251func (n *MapNode) String() string {
252 pairs := make([]string, len(n.Pairs))
253 for i, pair := range n.Pairs {
254 pairs[i] = pair.String()
255 }
256 return fmt.Sprintf("{%s}", strings.Join(pairs, ", "))
257}
258
259func (n *PairNode) String() string {
260 if str, ok := n.Key.(*StringNode); ok {

Callers

nothing calls this directly

Calls 2

SprintfMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected