MCPcopy Create free account
hub / github.com/antchfx/xpath / String

Method String

parse.go:675–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

673}
674
675func (f *functionNode) String() string {
676 var b bytes.Buffer
677 // fun(arg1, ..., argn)
678 b.Write([]byte(f.FuncName))
679 b.Write([]byte("("))
680 for i, arg := range f.Args {
681 if i > 0 {
682 b.Write([]byte(","))
683 }
684 b.Write([]byte(fmt.Sprintf("%s", arg)))
685 }
686 b.Write([]byte(")"))
687 return b.String()
688}
689
690type scanner struct {
691 text, name, prefix string

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected