[FIR] Update documentation of AbstractPredicate about matching local declarations
^KT-52449 Obsolete
This commit is contained in:
committed by
Space Team
parent
b25a67a50e
commit
b4bc659008
+4
@@ -20,6 +20,10 @@ import org.jetbrains.kotlin.fir.extensions.FirPredicateBasedProvider
|
|||||||
* The main difference between [LookupPredicate] and [DeclarationPredicate] is that [DeclarationPredicate] allows
|
* The main difference between [LookupPredicate] and [DeclarationPredicate] is that [DeclarationPredicate] allows
|
||||||
* to create predicate with meta annotations, and [LookupPredicate] allows to use only annotations with predefined
|
* to create predicate with meta annotations, and [LookupPredicate] allows to use only annotations with predefined
|
||||||
* qualified names
|
* qualified names
|
||||||
|
*
|
||||||
|
* Note that predicates can not be used for matching or looking up for local declarations (local functions, local classes, anonymous objects
|
||||||
|
* and their members). The only exception is matching local classes/anonymous objects with [AbstractPredicate.AnnotatedWith] and
|
||||||
|
* [AbstractPredicate.MetaAnnotatedWith] by [FirPredicateBasedProvider.matches]
|
||||||
*/
|
*/
|
||||||
sealed interface AbstractPredicate<P : AbstractPredicate<P>> {
|
sealed interface AbstractPredicate<P : AbstractPredicate<P>> {
|
||||||
val annotations: Set<AnnotationFqn>
|
val annotations: Set<AnnotationFqn>
|
||||||
|
|||||||
Reference in New Issue
Block a user