Last active
July 26, 2020 18:34
-
-
Save ShikaSD/b52fc5b77c6496b19dc713d9bdbeb833 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class HtmlNode { | |
class Tag(val tag: String): HtmlNode() { | |
private val children: List<HtmlNode> = mutableListOf() | |
// wordy implementations copy-pasted from compose | |
fun insert(index: Int, instance: HtmlNode) | |
fun move(from: Int, to: Int, count: Int) | |
fun remove(index: Int, count: Int) | |
} | |
class Text() : HtmlNode() { | |
var text: String? = null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment