replace meta.AmpersandToken

This commit is contained in:
z7zmey
2018-10-29 12:28:18 +02:00
parent 41a9409cbe
commit 5c09a98413
6 changed files with 23 additions and 24 deletions

View File

@@ -1515,7 +1515,6 @@ func (p *Printer) printExprReference(n node.Node) {
nn := n.(*expr.Reference)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.AmpersandToken)
io.WriteString(p.w, "&")
p.Print(nn.Variable)

View File

@@ -4097,7 +4097,7 @@ func TestPrinterPrintExprReference(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.AmpersandToken,
TokenName: meta.NodeStart,
},
},
Variable: &expr.Variable{