Skip to content

Commit 4d6ec0f

Browse files
committed
fix unused
1 parent feef606 commit 4d6ec0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ast/node.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ type Statement interface {
1919

2020
// ExCommand is the interface for Ex-command.
2121
type ExCommand interface {
22-
Node
22+
Statement
2323
Cmd() Cmd
24-
stmtNode()
2524
}
2625

2726
// Expr is the interface for expression.
@@ -42,6 +41,7 @@ func (f *File) Pos() Pos { return f.Start }
4241

4342
// vimlparser: COMMENT .str
4443
type Comment struct {
44+
Statement
4545
Quote Pos // position of `"` starting the comment
4646
Text string // comment text (excluding '\n')
4747
}
@@ -572,7 +572,6 @@ func (*DotExpr) exprNode() {}
572572
func (*BasicLit) exprNode() {}
573573
func (*List) exprNode() {}
574574
func (*Dict) exprNode() {}
575-
func (*KeyValue) exprNode() {}
576575
func (*CurlyName) exprNode() {}
577576
func (*CurlyNameLit) exprNode() {}
578577
func (*CurlyNameExpr) exprNode() {}

0 commit comments

Comments
 (0)