https://kotlinlang.org logo
#compiler
Title
# compiler
i

Icyrockton

03/20/2023, 1:30 PM
what the differences between
light-tree2fir
and
psi2fir
in raw-fir?
d

dmitriy.novozhilov

03/20/2023, 1:49 PM
Those two are different implementations of Raw FIR builder from results of two different parser representations
Actually they both use the same parser which produces light tree nodes (
LighterASTNode
) And PSI is built over light tree Building of PSI takes some significant time (~30% of all parsing + raw fir stage), so it was decided to don't create PSI in CLI compilation at all But we still need to create rawFIR from PSI for IDE mode
10 Views