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

Method String

parse.go:609–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607}
608
609func (a *axisNode) String() string {
610 var b bytes.Buffer
611 if a.AxisType != "" {
612 b.Write([]byte(a.AxisType + "::"))
613 }
614 if a.Prefix != "" {
615 b.Write([]byte(a.Prefix + ":"))
616 }
617 b.Write([]byte(a.LocalName))
618 if a.Prop != "" {
619 b.Write([]byte("/" + a.Prop + "()"))
620 }
621 return b.String()
622}
623
624// operandNode holds a constant operand.
625type operandNode struct {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected