Do not check locations inside synthetic and bridge methods

No valid psi declarations can be found for such locations leading to
negative rank.
This commit is contained in:
Nikolay Krasko
2018-07-31 19:11:54 +03:00
parent c2dc66fe1b
commit da6bcc9d46
@@ -38,6 +38,8 @@ abstract class AbstractFileRankingTest : LowLevelDebuggerTestBase() {
val allFilesWithSameName = getKtFiles(expectedFile.name)
for (location in locations) {
if (location.method().isBridge || location.method().isSynthetic) continue
val actualFile = calculator.findMostAppropriateSource(allFilesWithSameName, location)
if (actualFile != expectedFile) {
problems += "Location ${location.sourceName()}:${location.lineNumber() - 1} is associated with a wrong KtFile:\n" +