Will all the descriptor classes disappear with the...
# compiler
j
Will all the descriptor classes disappear with the new compiler ? E.g.
DeclarationDescriptor
,
FunctionDescriptor
, etc . Same question for
BindingContext
👌 1
i
To what are there going to be shifted to ?
j
@dmitriy.novozhilov will there be any convenience methods (that could be used also by IntelliJ for instance) to help migrate projects using those descriptors ? For instance methods that convert new UAST elements to old descriptors. Otherwise I am curious how you plan to update the IntelliJ plugin to the new compiler 🙂
d
@Imran/Malic they will be replaced with Frontend Ir (FIR) tree
🔥 3
@jdemeulenaere we will provide some bridges from new API to old one for most of common cases used in IDEA kotlin plugin That bridge API will be written with deprecation to force write new code with new API Part of kotlin plugin will be rewrited with new API (performance critical part)
i
Awesome @dmitriy.novozhilov, do you have a class I can look into - some central interfaces or something. I havent looked at FIR for months.
d
@Imran/Malic Some main points: • module
compiler/fir/tree
contains almost all possible nodes of fir tree •
RawFirBuilder
is responsible for building FIR from PSI • All processing stages are accumulated in
FirTotalResolveTransformer
i
thanks fo the resources. I’ll take a look.