pmd-lang-test / net.sourceforge.pmd.lang.ast.test / net.sourceforge.pmd.lang.ast.Node

Extensions for net.sourceforge.pmd.lang.ast.Node

safeGetChild

Extension methods to make the Node API more Kotlin-like

fun Node.safeGetChild(i: Int): Node?

shouldMatchNode

A shorthand for baseShouldMatchSubtree providing the NodeTreeLikeAdapter.

fun <N : Node> Node?.shouldMatchNode(ignoreChildren: Boolean = false, nodeSpec: NodeSpec<N>): Unit