Initial support for chained call wrapping options

#KT-21529 Fixed
This commit is contained in:
Dmitry Jemerov
2017-11-30 16:17:09 +01:00
parent 1a93d10697
commit dc4e673fb1
7 changed files with 124 additions and 5 deletions
@@ -391,6 +391,7 @@ fun KtModifierListOwner.hasActualModifier() = hasModifier(KtTokens.IMPL_KEYWORD)
fun KtModifierList.hasActualModifier() = hasModifier(KtTokens.IMPL_KEYWORD) || hasModifier(KtTokens.ACTUAL_KEYWORD)
fun ASTNode.children() = generateSequence(firstChildNode) { node -> node.treeNext }
fun ASTNode.parents() = generateSequence(treeParent) { node -> node.treeParent }
fun ASTNode.siblings(forward: Boolean = true): Sequence<ASTNode> {
if (forward) {