Skip to content

Commit

Permalink
Support PRIVATE_TO_THIS visibility
Browse files Browse the repository at this point in the history
(cherry picked from commit d55ef89)
  • Loading branch information
technoir42 authored and KSP Auto Pick committed Jan 18, 2024
1 parent 57bb735 commit 5f6f4bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ fun MemberDescriptor.toKSModifiers(): Set<Modifier> {
JavaDescriptorVisibilities.PROTECTED_AND_PACKAGE,
JavaDescriptorVisibilities.PROTECTED_STATIC_VISIBILITY,
-> modifiers.add(Modifier.PROTECTED)
DescriptorVisibilities.PRIVATE, DescriptorVisibilities.LOCAL -> modifiers.add(Modifier.PRIVATE)
DescriptorVisibilities.PRIVATE,
DescriptorVisibilities.PRIVATE_TO_THIS,
DescriptorVisibilities.LOCAL -> modifiers.add(Modifier.PRIVATE)
DescriptorVisibilities.INTERNAL -> modifiers.add(Modifier.INTERNAL)
// Since there is no modifier for package-private, use No modifier to tell if a symbol from binary is package private.
JavaDescriptorVisibilities.PACKAGE_VISIBILITY, JavaDescriptorVisibilities.PROTECTED_STATIC_VISIBILITY -> Unit
Expand Down

0 comments on commit 5f6f4bc

Please sign in to comment.