Skip to content

siblings

fun PsiElement.siblings(forward: Boolean = true, withItself: Boolean = true): Sequence<PsiElement>

Returns the siblings of this element as a lazy sequence, going forward (or backward) and optionally including the element itself (withItself).

fun ASTNode.siblings(forward: Boolean = true): Sequence<ASTNode>

The sibling nodes of this AST node, going forward (or backward), as a lazy sequence.