Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a788bc

Browse files
committed
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.
1 parent 225913c commit 0a788bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ open class KotlinFileExtractor(
642642
if (getter == null) {
643643
logger.warnElement("Expected an annotation property to have a getter", it)
644644
} else {
645-
extractFunction(getter, id, extractBody = false, extractMethodAndParameterTypeAccesses = true, extractAnnotations = true, null, listOf())?.also { functionLabel ->
645+
extractFunction(getter, id, extractBody = false, extractMethodAndParameterTypeAccesses = extractFunctionBodies, extractAnnotations = true, null, listOf())?.also { functionLabel ->
646646
tw.writeIsAnnotElem(functionLabel.cast())
647647
}
648648
}

0 commit comments

Comments
 (0)