()
| 257 | } |
| 258 | |
| 259 | func (n *PairNode) String() string { |
| 260 | if str, ok := n.Key.(*StringNode); ok { |
| 261 | if utils.IsValidIdentifier(str.Value) { |
| 262 | return fmt.Sprintf("%s: %s", str.Value, n.Value.String()) |
| 263 | } |
| 264 | return fmt.Sprintf("%s: %s", str.String(), n.Value.String()) |
| 265 | } |
| 266 | return fmt.Sprintf("(%s): %s", n.Key.String(), n.Value.String()) |
| 267 | } |
nothing calls this directly
no test coverage detected