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

Method String

node.go:191–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func (c *CommandNode) String() string {
192 if c.Exprs == nil {
193 return c.BaseExpr.String()
194 }
195
196 arguments := ""
197 for i, expr := range c.Exprs {
198 if i > 0 {
199 arguments += ", "
200 }
201 arguments += expr.String()
202 }
203 return fmt.Sprintf("%s(%s)", c.BaseExpr, arguments)
204}
205
206// IdentifierNode holds an identifier.
207type IdentifierNode struct {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected