replace meta.PlusToken
This commit is contained in:
@@ -1641,7 +1641,6 @@ func (p *Printer) printExprUnaryPlus(n node.Node) {
|
||||
nn := n.(*expr.UnaryPlus)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.PlusToken)
|
||||
io.WriteString(p.w, "+")
|
||||
p.Print(nn.Expr)
|
||||
|
||||
|
||||
@@ -4582,7 +4582,7 @@ func TestPrinterPrintUnaryPlus(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.PlusToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
},
|
||||
Expr: &expr.Variable{
|
||||
|
||||
Reference in New Issue
Block a user