MCPcopy Create free account
hub / github.com/araddon/qlbridge / NodePb

Method NodePb

expr/node.go:797–807  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

795}
796func (m *StringNode) Validate() error { return nil }
797func (m *StringNode) NodePb() *NodePb {
798 n := &StringNodePb{}
799 n.Text = m.Text
800 if m.noQuote {
801 n.Noquote = proto.Bool(true)
802 }
803 if m.Quote > 0 {
804 n.Quote = proto.Int32(int32(m.Quote))
805 }
806 return &NodePb{Sn: n}
807}
808func (m *StringNode) FromPB(n *NodePb) Node {
809 noQuote := false
810 quote := 0

Callers

nothing calls this directly

Calls 1

BoolMethod · 0.80

Tested by

no test coverage detected