:wave: everyone! I’m working on implementing an Op...
# compiler
t
👋 everyone! I’m working on implementing an OpenRewrite AST to support Kotlin migrations. I’m new to the Kotlin compiler and am unsure what to ask. I have the
FirSession
created (not fully configured), and I have a few questions: 1. What are the specific responsibilities of the Frontend Intermediate Representation, the Program Structure Interface, and Intermediate Representation? 2. When does type attribution occur for Kotlin sources and Java sources? Is it during the FIR to IR conversion? 3. Which source files are responsible for type attribution and the configuration for type attribution?
s
Yay, many thanks for working on that! I've been wondering what happened to https://github.com/openrewrite/rewrite/issues/21 😉
t
Well, hello, haha. There is a WIP project rewrite-kotin. As I go, I’m learning about the Kotlin compiler, so any help is appreciated. 😉
You can also search for threads with my answers in this channel. There were some of them where I described more kotlin compiler theory
Also there are some docs in Kotlin repo
t
@dmitriy.novozhilov perfect, that should be enough to get me going — thank you so much, again!
135 Views