commonMain.org.intellij.markdown.ast.CompositeASTNode.kt Maven / Gradle / Ivy
package org.intellij.markdown.ast
import org.intellij.markdown.IElementType
open class CompositeASTNode(type: IElementType, final override val children: List)
: ASTNodeImpl(type, children.firstOrNull()?.startOffset ?: 0, children.lastOrNull()?.endOffset ?: 0) {
init {
for (child in children) {
if (child is ASTNodeImpl) {
@Suppress("LeakingThis")
child.parent = this
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy