Skip to content

Commit

Permalink
Publish filterOutAnnotated as ExternalApi (#75)
Browse files Browse the repository at this point in the history
This method is intended to be used to verify the
`kotlin-gradle-plugin-idea` module in kotlin.git
This method has special APIs for the Gradle plugin
only which are not needed to be kept stable
  • Loading branch information
sellmair committed Feb 14, 2022
1 parent 93c05e2 commit d2ff1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/api/KotlinSignaturesLoading.kt
Expand Up @@ -82,7 +82,8 @@ public fun Sequence<InputStream>.loadApiFromJvmClasses(visibilityFilter: (String
}
}

internal fun List<ClassBinarySignature>.filterOutAnnotated(targetAnnotations: Set<String>): List<ClassBinarySignature> {
@ExternalApi
public fun List<ClassBinarySignature>.filterOutAnnotated(targetAnnotations: Set<String>): List<ClassBinarySignature> {
if (targetAnnotations.isEmpty()) return this
return filter {
it.annotations.all { ann -> !targetAnnotations.any { ann.refersToName(it) } }
Expand Down

0 comments on commit d2ff1bf

Please sign in to comment.