:wave:, I’d like to type attribute types like `lis...
# compiler
t
👋, I’d like to type attribute types like
listOf
with an
owner
, which in this case is
CollectionKt
. I.E., instances where
ClassMembersKt.containingClass
returns null. The
ClassId
is available through the `ResolvedNamedFunctionSymbol`’s FIR in the
ContainerSource
. And I’m curious if it’s possible to get the
FirBasedSymbol
or
FirElement
from a
ClassId
?
d
Frontend operates files only in cases when it is really necessary (only source files which are being compiled) So from frontend point of view there is no such thing as
CollectionsKt
class or
Collections
file. There is only a function
listOf
in package
kotlin.collections
from binary dependenices
t
That’s fair; thank you