File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ type Statement interface {
1919
2020// ExCommand is the interface for Ex-command.
2121type 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
4443type 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() {}
572572func (* BasicLit ) exprNode () {}
573573func (* List ) exprNode () {}
574574func (* Dict ) exprNode () {}
575- func (* KeyValue ) exprNode () {}
576575func (* CurlyName ) exprNode () {}
577576func (* CurlyNameLit ) exprNode () {}
578577func (* CurlyNameExpr ) exprNode () {}
You can’t perform that action at this time.
0 commit comments