ktlint
ktlint copied to clipboard
Refactor AstNodeExtensions - use properties with getters
Most likely we want to define this as property with a getter in AstNodeExtensions:
public val ASTNode.isLeaf: Boolean get() = firstChildNode == nullThere are many functions defined in ASTNodeExtension which probably could better have been define in similar way. So we can also park this in a separate change.
Originally posted by @paul-dingemans in https://github.com/pinterest/ktlint/pull/2901#discussion_r1887266435