Backport `DeclarationFinder`, `finderForBuiltins`, `finderForSource` to pre-2.3.20

オープン
#108 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
kotlin
領域
compilers

調査の方向性

Start with the upstream Kotlin commit linked in the issue (25ccec5d) to see how DeclarationFinder, finderForBuiltins and finderForSource work in IR, then compare with what IrPluginContext exposes through its reference* methods on older compiler versions. The maintainers have not chosen between a full port of the incremental-compilation behavior and a simple delegation to reference*, so agree on the scope in the issue before writing code. Done means the helpers resolve declarations on pre-2.3.20 compilers and the chosen approach is tested against that version.

索引モデルが issue の本文から書いたものです。

説明

compatibility

Introduced in this commit

Encountered both in Arrow optics and in Metro, so probably a good candidate for backporting. It's part of IrPluginContext, so it's likely to be used by many plugins.

There's a question of how much of the functionality should we try to backport.
We can try and recreate its IC behavior, but that needs extensive testing to make sure what we're doing is sound and doesn't break something else in the compiler.
The simpler approach is to just delegate to the IrPluginContext.reference* methods and call it a day.

主要言語
Kotlin
スター
34
フォーク
1
平均マージ
1日 9時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Kotlin/compiler-plugin-dev-kit のほかの issue

Kotlin/compiler-plugin-dev-kit の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。