Any reason there is AbstractSimpleClassPredicateMa...
# compiler
h
Any reason there is AbstractSimpleClassPredicateMatchingService for FirRegularClassSymbol only and no (generated) AbstractMatchingService for each possible FIRElement?
d
Well, according to the documentation, this service is used to answer questions "is this class or some of its superclasses matches specific predicate or not?". And only only classes can have supertypes If you need to just match arbitrary elements by predicates it's ok to just use
predicateBasedProvider
, as it uses caching under the hood
h
Thank you, will check it out! Yes I want to match a FirSimpleFuntion that is annotated with a, well, annotation. And the abstract service explicitly uses caching so I was surprised to not find a service for other elements.