Backport `DeclarationFinder`, `finderForBuiltins`, `finderForSource` to pre-2.3.20
还没有人认领这个 Issue。
评估
调研方向
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 内容生成。
描述
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 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Kotlin/compiler-plugin-dev-kit 的其他 Issue
-
compatibility
难度 2/5 1-3 小时 新手友好度 64/100
Kotlin/compiler-plugin-dev-kit#133 · 1 条评论 ·
-
compatibility
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 68/100
Kotlin/compiler-plugin-dev-kit#115 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
查看 Kotlin/compiler-plugin-dev-kit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
code-scan
难度 2/5 1-3 小时 新手友好度 74/100
ankidroid/Anki-Android#23806 ·
维护者通常 1 天内回复
-
bug 🐞 Untriaged user issue
难度 2/5 1-3 小时 新手友好度 88/100
valkey-io/valkey-glide#7896 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 86/100
thisisartman/Meguri#211 ·
维护者通常 1 天内回复
-
follow-up
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复