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 ddf5b39
Showing 1 changed file with 5 additions and 3 deletions.
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 ddf5b39

Please sign in to comment.