JVM_IR. Deprecate public access to @JvmField/const fields in private companions

#KT-25009
This commit is contained in:
Mikhael Bogdanov
2020-10-29 09:25:43 +01:00
parent 57c9afc73a
commit 5804f73ebd
11 changed files with 134 additions and 18 deletions
@@ -245,3 +245,7 @@ fun IrClassSymbol.getPropertySetter(name: String): IrSimpleFunctionSymbol? = own
inline fun MemberScope.findFirstFunction(name: String, predicate: (CallableMemberDescriptor) -> Boolean) =
getContributedFunctions(Name.identifier(name), NoLookupLocation.FROM_BACKEND).first(predicate)
fun filterOutAnnotations(fqName: FqName, annotations: List<IrConstructorCall>): List<IrConstructorCall> {
return annotations.filterNot { it.annotationClass.hasEqualFqName(fqName) }
}