remove meta.BackquoteToken

This commit is contained in:
z7zmey
2018-10-29 12:32:54 +02:00
parent e036135fab
commit 6dde9ef052
8 changed files with 354 additions and 360 deletions

View File

@@ -1545,7 +1545,6 @@ func (p *Printer) printExprShellExec(n node.Node) {
nn := n.(*expr.ShellExec)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.BackquoteToken)
io.WriteString(p.w, "`")
for _, part := range nn.Parts {
p.Print(part)

View File

@@ -4175,7 +4175,7 @@ func TestPrinterPrintShellExec(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.BackquoteToken,
TokenName: meta.NodeStart,
},
},
Parts: []node.Node{