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

Method String

ast/print.go:40–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40func (n *ConstantNode) String() string {
41 if n.Value == nil {
42 return "nil"
43 }
44 b, err := json.Marshal(n.Value)
45 if err != nil {
46 panic(err)
47 }
48 return string(b)
49}
50
51func (n *UnaryNode) String() string {
52 op := n.Operator

Callers 1

TestPrint_ConstantNodeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestPrint_ConstantNodeFunction · 0.76