mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Remove external property related log messages
This commit is contained in:
@@ -1306,7 +1306,9 @@ open class KotlinFileExtractor(
|
||||
val getterId = extractFunction(getter, parentId) as Label<out DbMethod>
|
||||
tw.writeKtPropertyGetters(id, getterId)
|
||||
} else {
|
||||
logger.warnElement(Severity.ErrorSevere, "IrProperty without a getter", p)
|
||||
if (p.modality != Modality.FINAL || !isExternalDeclaration(p)) {
|
||||
logger.warnElement(Severity.ErrorSevere, "IrProperty without a getter", p)
|
||||
}
|
||||
}
|
||||
|
||||
if(setter != null) {
|
||||
@@ -1317,7 +1319,7 @@ open class KotlinFileExtractor(
|
||||
val setterId = extractFunction(setter, parentId) as Label<out DbMethod>
|
||||
tw.writeKtPropertySetters(id, setterId)
|
||||
} else {
|
||||
if(p.isVar) {
|
||||
if (p.isVar && !isExternalDeclaration(p)) {
|
||||
logger.warnElement(Severity.ErrorSevere, "isVar property without a setter", p)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user