[SLC] ModifiersBox: add kdoc
^KT-56046
This commit is contained in:
committed by
Space Team
parent
817eeb3a49
commit
a0fa1cce85
+9
@@ -5,6 +5,15 @@
|
||||
|
||||
package org.jetbrains.kotlin.light.classes.symbol.modifierLists
|
||||
|
||||
/**
|
||||
* This class is used as a proxy for [com.intellij.psi.PsiModifierList.hasModifierProperty].
|
||||
*
|
||||
* [LazyModifiersBox] provides an ability to compute each modifier separately to avoid heavy computation.
|
||||
* [SimpleModifiersBox] is a collection of possible modifiers.
|
||||
* [EmptyModifiersBox] just a box without modifiers.
|
||||
*
|
||||
* @see SymbolLightModifierList
|
||||
*/
|
||||
internal sealed interface ModifiersBox {
|
||||
fun hasModifier(modifier: String): Boolean
|
||||
}
|
||||
|
||||
+1
@@ -7,5 +7,6 @@ package org.jetbrains.kotlin.light.classes.symbol.modifierLists
|
||||
|
||||
internal class SimpleModifiersBox(private val modifiers: Set<String>) : ModifiersBox {
|
||||
constructor(vararg modifiers: String) : this(modifiers.toSet())
|
||||
|
||||
override fun hasModifier(modifier: String): Boolean = modifier in modifiers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user