(v string, column int)
| 588 | } |
| 589 | |
| 590 | func (e *Encoder) encodeString(v string, column int) *ast.StringNode { |
| 591 | if e.isNeedQuoted(v) { |
| 592 | if e.singleQuote { |
| 593 | v = quoteWith(v, '\'') |
| 594 | } else { |
| 595 | v = strconv.Quote(v) |
| 596 | } |
| 597 | } |
| 598 | return ast.String(token.New(v, v, e.pos(column))) |
| 599 | } |
| 600 | |
| 601 | func (e *Encoder) encodeBool(v bool) *ast.BoolNode { |
| 602 | value := strconv.FormatBool(v) |
no test coverage detected