forked from phoedos/pmd
Merge branch '7.0.x' into pmd7-language-lifecycle
This commit is contained in:
@@ -24,7 +24,7 @@ inline fun <reified T : Node> Node.getDescendantsOfType(): List<T> = descendants
|
||||
inline fun <reified T : Node> Node.getFirstDescendantOfType(): T = descendants(T::class.java).firstOrThrow()
|
||||
|
||||
fun Node.textOfReportLocation(): String? =
|
||||
reportLocation.regionInFile?.let(textDocument::sliceText)?.toString()
|
||||
reportLocation.regionInFile?.let(textDocument::sliceOriginalText)?.toString()
|
||||
|
||||
|
||||
fun Node.assertTextRangeIsOk() {
|
||||
|
Reference in New Issue
Block a user