mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Don't extract return value type accesses for external annotations
This would cause inconsistencies when both the source and external view of the class are in scope, since the type access has a fresh id.
This commit is contained in:
@@ -642,7 +642,7 @@ open class KotlinFileExtractor(
|
||||
if (getter == null) {
|
||||
logger.warnElement("Expected an annotation property to have a getter", it)
|
||||
} else {
|
||||
extractFunction(getter, id, extractBody = false, extractMethodAndParameterTypeAccesses = true, extractAnnotations = true, null, listOf())?.also { functionLabel ->
|
||||
extractFunction(getter, id, extractBody = false, extractMethodAndParameterTypeAccesses = extractFunctionBodies, extractAnnotations = true, null, listOf())?.also { functionLabel ->
|
||||
tw.writeIsAnnotElem(functionLabel.cast())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user