The processNode function from the GeneratingProvider interface requires a specific implementation of the HtmlGenerator.HtmlGeneratingVisitor class rather than an abstraction while HtmlGenerator.HtmlGeneratingVisitor implements the RecursiveVisitor interface.
interface GeneratingProvider {
fun processNode(visitor: HtmlGenerator.HtmlGeneratingVisitor, text: String, node: ASTNode)
}
Please replace HtmlGenerator.HtmlGeneratingVisitor with RecursiveVisitor in the parameters of the GeneratingProvider interface so you can expand or create your own generator! Also, make the class HtmlGenerator open so that it can be extended.
The
processNodefunction from theGeneratingProviderinterface requires a specific implementation of theHtmlGenerator.HtmlGeneratingVisitorclass rather than an abstraction whileHtmlGenerator.HtmlGeneratingVisitorimplements theRecursiveVisitorinterface.Please replace
HtmlGenerator.HtmlGeneratingVisitorwithRecursiveVisitorin the parameters of theGeneratingProviderinterface so you can expand or create your own generator! Also, make the classHtmlGeneratoropen so that it can be extended.