Skip to content

Commit

Permalink
Call deprecated handleCommand from handleCommandAsTag
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Feb 21, 2022
1 parent 8c7a477 commit f77ec86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions plugins/templating/api/templating.api
Expand Up @@ -44,6 +44,7 @@ public final class org/jetbrains/dokka/templates/CommandHandler$DefaultImpls {
public static fun finish (Lorg/jetbrains/dokka/templates/CommandHandler;Ljava/io/File;)V
public static fun handleCommand (Lorg/jetbrains/dokka/templates/CommandHandler;Lorg/jsoup/nodes/Element;Lorg/jetbrains/dokka/base/templating/Command;Ljava/io/File;Ljava/io/File;)V
public static fun handleCommandAsComment (Lorg/jetbrains/dokka/templates/CommandHandler;Lorg/jetbrains/dokka/base/templating/Command;Ljava/util/List;Ljava/io/File;Ljava/io/File;)V
public static fun handleCommandAsTag (Lorg/jetbrains/dokka/templates/CommandHandler;Lorg/jetbrains/dokka/base/templating/Command;Lorg/jsoup/nodes/Element;Ljava/io/File;Ljava/io/File;)V
}

public final class org/jetbrains/dokka/templates/DefaultMultiModuleTemplateProcessor : org/jetbrains/dokka/templates/MultiModuleTemplateProcessor {
Expand Down
Expand Up @@ -8,9 +8,11 @@ import java.io.File

interface CommandHandler {
@Deprecated("This was renamed to handleCommandAsTag", ReplaceWith("handleCommandAsTag(command, element, input, output)"))
fun handleCommand(element: Element, command: Command, input: File, output: File) =
handleCommandAsTag(command, element, input, output)
fun handleCommandAsTag(command: Command, body: Element, input: File, output: File)
fun handleCommand(element: Element, command: Command, input: File, output: File) { }

@Suppress("DEPRECATION")
fun handleCommandAsTag(command: Command, body: Element, input: File, output: File) =
handleCommand(body, command, input, output)
fun handleCommandAsComment(command: Command, body: List<Node>, input: File, output: File) { }
fun canHandle(command: Command): Boolean
fun finish(output: File) {}
Expand Down

0 comments on commit f77ec86

Please sign in to comment.