Skip to content

Commit

Permalink
FIR IDE: add local visibility to symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
darthorimar committed Nov 23, 2020
1 parent 5fdcc4b commit 7320620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ sealed class KtSymbolVisibility {
object PROTECTED : KtSymbolVisibility()
object INTERNAL : KtSymbolVisibility()
object UNKNOWN : KtSymbolVisibility()
object LOCAL : KtSymbolVisibility()
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ internal fun Visibility?.getSymbolVisibility(): KtSymbolVisibility = when (this)
Visibilities.Protected -> KtSymbolVisibility.PROTECTED
Visibilities.Private -> KtSymbolVisibility.PRIVATE
Visibilities.Internal -> KtSymbolVisibility.INTERNAL
Visibilities.Local -> KtSymbolVisibility.LOCAL
Visibilities.Unknown -> KtSymbolVisibility.UNKNOWN
JavaVisibilities.PackageVisibility -> KtSymbolVisibility.UNKNOWN //TODO: Add Java visibilities
null -> error("Symbol visibility should not be null, looks like the fir symbol was not properly resolved")
Expand Down

0 comments on commit 7320620

Please sign in to comment.