()
| 795 | } |
| 796 | func (m *StringNode) Validate() error { return nil } |
| 797 | func (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 | } |
| 808 | func (m *StringNode) FromPB(n *NodePb) Node { |
| 809 | noQuote := false |
| 810 | quote := 0 |