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:
Chris Smowton
2022-11-21 17:54:12 +00:00
parent 225913c49e
commit 0a788bcbc1

View File

@@ -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())
}
}