remove meta.InterfaceToken
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user