MCPcopy
hub / github.com/purpleidea/mgmt / String

Method String

lang/ast/structs.go:10416–10426  ·  view source on GitHub ↗

String returns a short representation of this expression.

()

Source from the content-addressed store, hash-verified

10414
10415// String returns a short representation of this expression.
10416func (obj *ExprCall) String() string {
10417 var s []string
10418 for _, x := range obj.Args {
10419 s = append(s, x.String())
10420 }
10421 name := obj.Name
10422 if obj.Name == "" && obj.Anon != nil {
10423 name = "<anon>"
10424 }
10425 return "call:" + name + "(" + strings.Join(s, ", ") + ")"
10426}
10427
10428// Apply is a general purpose iterator method that operates on any AST node. It
10429// is not used as the primary AST traversal function because it is less readable

Callers 1

TypeMethod · 0.95

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected