Any reason there is AbstractSimpleClassPredicateMatchingService for FirRegularClassSymbol only and no (generated) AbstractMatchingService for each possible FIRElement?
d
dmitriy.novozhilov
10/29/2024, 7:18 AM
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
hfhbd
10/29/2024, 8:09 PM
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.