Merge branch '7.0.x' into pmd7-language-lifecycle

This commit is contained in:
Clément Fournier
2022-09-11 13:26:43 +02:00
150 changed files with 3340 additions and 1324 deletions

View File

@@ -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() {