Skip to content

Commit 2e95791

Browse files
nicolas-guichardantonsviridov-src
authored andcommitted
Don't emit reference to implicit type annotations
1 parent a503611 commit 2e95791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semanticdb-kotlinc/src/main/kotlin/com/sourcegraph/semanticdb_kotlinc/AnalyzerCheckers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ open class AnalyzerCheckers(session: FirSession) : FirAdditionalCheckersExtensio
280280

281281
val klass = declaration.returnTypeRef.toClassLikeSymbol(context.session)
282282
val klassSource = declaration.returnTypeRef.source
283-
if (klass != null && klassSource != null) {
283+
if (klass != null && klassSource != null && klassSource.kind !is KtFakeSourceElementKind) {
284284
visitor?.visitClassReference(klass, getIdentifier(klassSource), context)
285285
}
286286
}

0 commit comments

Comments
 (0)