mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Kotlin: Broaden isFake
This commit is contained in:
@@ -82,7 +82,14 @@ open class KotlinFileExtractor(
|
||||
}
|
||||
|
||||
private fun isFake(d: IrDeclarationWithVisibility): Boolean {
|
||||
return d.isFakeOverride
|
||||
val visibility = d.visibility
|
||||
if (visibility is DelegatedDescriptorVisibility && visibility.delegate == Visibilities.InvisibleFake) {
|
||||
return true
|
||||
}
|
||||
if (d.isFakeOverride) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
fun extractDeclaration(declaration: IrDeclaration) {
|
||||
|
||||
Reference in New Issue
Block a user