Caleb B
11/20/2025, 5:36 PMFirClassSymbol<*>#declaredX only gives class members.
This is specifically for diagnostics, so it should be resolved at that point, right?Youssef Shoaib [MOD]
11/20/2025, 5:48 PMFirClass). I don't think there's a general way to get all extension funs. If you want specifically extensions in certain packages, then there's something like a package fragment provider IIRCCaleb B
11/20/2025, 5:58 PMdmitriy.novozhilov
11/21/2025, 7:15 AMFirClass.declarations to get the list of class declarations.
For accessing class member there is a scope API, which correctly handles inheritance, generics substitution, java type enhancements, matching overrides and other stuff.
// assuming you have `CheckerContext` around
val scope = classSymbol.unsubstitutedScope()
val allFunctions = scope.collectAllFunctions()
val allProperties = scope.collectAllProperties()
There is also an advanced API of scopes for processing overrides, you can check it's usage in compiler checkers like in FirNotImplementedOverrideChecker.