remove meta.NewAnchor

This commit is contained in:
z7zmey
2018-10-26 12:08:07 +03:00
parent 67dfb0773c
commit fb8ec01280
8 changed files with 11 additions and 13 deletions

View File

@@ -1432,7 +1432,6 @@ func (p *Printer) printExprNew(n node.Node) {
nn := n.(*expr.New)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.NewAnchor)
io.WriteString(p.w, "new")
p.Print(nn.Class)

View File

@@ -3823,7 +3823,7 @@ func TestPrinterPrintNew(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.NewAnchor,
TokenName: meta.NodeStart,
},
},
Class: &name.Name{