All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.intellij.markdown.ast.CompositeASTNode.kt Maven / Gradle / Ivy

There is a newer version: 0.7.3
Show newest version
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