Add comments to new statement.
@@ -79,11 +79,14 @@ func (ds *DefStatement) String() string {
return out.String()
}
+// NextStatement represents "next" keyword
type NextStatement struct {
Token token.Token
}
func (ns *NextStatement) statementNode() {}
+
+// TokenLiteral returns token's literal
func (ns *NextStatement) TokenLiteral() string {
return ns.Token.Literal
}
