remove meta.InterfaceToken

This commit is contained in:
z7zmey
2018-10-29 14:20:29 +02:00
parent 67e222a88f
commit 5a715a4a11
8 changed files with 7 additions and 9 deletions

View File

@@ -2357,7 +2357,6 @@ func (p *Printer) printStmtInterface(n node.Node) {
nn := n.(*stmt.Interface)
p.printMeta(nn, meta.NodeStart)
p.printMeta(n, meta.InterfaceToken)
io.WriteString(p.w, "interface")
if nn.InterfaceName != nil {

View File

@@ -7434,7 +7434,7 @@ func TestPrinterPrintInterface(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.InterfaceToken,
TokenName: meta.NodeStart,
},
&meta.Data{
Type: meta.WhiteSpaceType,