(text []byte)
| 768 | } |
| 769 | |
| 770 | func (p *parser) emitText(text []byte) { |
| 771 | for len(text) > 0 { |
| 772 | n := bytes.IndexByte(text, '`') |
| 773 | if n < 0 { |
| 774 | p.Printf("qw%s.N().S(`%s`)", mangleSuffix, text) |
| 775 | return |
| 776 | } |
| 777 | p.Printf("qw%s.N().S(`%s`)", mangleSuffix, text[:n]) |
| 778 | p.Printf("qw%s.N().S(\"`\")", mangleSuffix) |
| 779 | text = text[n+1:] |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | func (p *parser) emitFuncStart(f *funcType) { |
| 784 | p.Printf("func %s {", f.DefStream("qw"+mangleSuffix)) |
no test coverage detected