File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
java/kotlin-extractor/src/main/kotlin Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ open class KotlinFileExtractor(
205
205
}
206
206
207
207
@OptIn(ObsoleteDescriptorBasedAPI ::class )
208
- private fun isFake (d : IrDeclarationWithVisibility ): Boolean {
208
+ fun isFake (d : IrDeclarationWithVisibility ): Boolean {
209
209
val hasFakeVisibility =
210
210
d.visibility.let {
211
211
it is DelegatedDescriptorVisibility && it.delegate == Visibilities .InvisibleFake
Original file line number Diff line number Diff line change @@ -41,7 +41,13 @@ open class CommentExtractor(
41
41
tw.getExistingLabelFor<DbTop >(label)
42
42
}
43
43
if (existingLabel == null ) {
44
- logger.warn(" Couldn't get existing label for $label " )
44
+ // Sometimes we don't extract elements.
45
+ // The actual extractor logic is a bit more nuanced than
46
+ // just "isFake", but just checking isFake is good enough
47
+ // to not bother with a warning.
48
+ if (element !is IrDeclarationWithVisibility || ! fileExtractor.isFake(element)) {
49
+ logger.warn(" Couldn't get existing label for $label " )
50
+ }
45
51
return null
46
52
}
47
53
return existingLabel
You can’t perform that action at this time.
0 commit comments