Hey there. I'm trying to write a `checkstyle` chec...
# getting-started
f
Hey there. I'm trying to write a
checkstyle
check using Kotlin. In there I want to add an extension property that allows me to iterate over siblings of a checkstyle's
DetailAST
node, e.g. like
for(sibling in node.siblings)
. The
DetailAST
allows traversal on siblings via a method
DetailAST#getNextSibling
. What's the best way to create some iterable out of it (maybe a
Sequence
)? Not sure where I should start, any idea would be appreciated.