Heavily reworked inspections for edge cases, such as multiple isEqualTo() calls inside a single statement. Corrected highlighting for most inspections. Lots of refactorings, tweakings. Added travis-ci file (untested). Added jacoco.
This commit is contained in:
+2
-3
@@ -50,9 +50,8 @@ class ExtractorReferenceContributor : PsiReferenceContributor() {
|
||||
}
|
||||
|
||||
private fun findActualType(element: PsiElement): PsiClassType? {
|
||||
val assertThatCall = PsiTreeUtil.findChildrenOfType(element, PsiMethodCallExpression::class.java)
|
||||
.find { CORE_ASSERT_THAT_MATCHER.test(it) } ?: return null
|
||||
return assertThatCall.firstArg.type as? PsiClassType
|
||||
val assertThatCall = element.findStaticMethodCall()
|
||||
return assertThatCall?.firstArg?.type as? PsiClassType
|
||||
}
|
||||
|
||||
private fun findAndCreateReferences(element: PsiElement, finder: (PsiLiteralExpression) -> List<Pair<TextRange, List<PsiElement>>>?): Array<PsiReference> {
|
||||
|
||||
Reference in New Issue
Block a user