replace meta.MinusToken
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -4550,7 +4550,7 @@ func TestPrinterPrintUnaryMinus(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.MinusToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
},
|
||||
Expr: &expr.Variable{
|
||||
|
||||
Reference in New Issue
Block a user