replace meta.MinusToken

This commit is contained in:
z7zmey
2018-10-29 12:41:52 +02:00
parent 82a06f5b10
commit 9373b24ce7
6 changed files with 9 additions and 10 deletions

View File

@@ -1631,7 +1631,6 @@ func (p *Printer) printExprUnaryMinus(n node.Node) {
nn := n.(*expr.UnaryMinus)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.MinusToken)
io.WriteString(p.w, "-")
p.Print(nn.Expr)

View File

@@ -4550,7 +4550,7 @@ func TestPrinterPrintUnaryMinus(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.MinusToken,
TokenName: meta.NodeStart,
},
},
Expr: &expr.Variable{