remove meta.AtToken

This commit is contained in:
z7zmey
2018-10-26 11:53:54 +03:00
parent 3b5fd08743
commit 24293377b6
8 changed files with 7 additions and 10 deletions

View File

@@ -1302,8 +1302,6 @@ func (p *Printer) printExprEmpty(n node.Node) {
func (p *Printer) printExprErrorSuppress(n node.Node) {
nn := n.(*expr.ErrorSuppress)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.AtToken)
io.WriteString(p.w, "@")
p.Print(nn.Expr)

View File

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