8000 Fix getting annotation default values in KLibs by jaschdoc · Pull Request #3200 · google/ksp · GitHub
[go: up one dir, main page]

Skip to content

Fix getting annotation default values in KLibs - #3200

Merged
jaschdoc merged 3 commits into
mainfrom
annotation-default-values
Sep 24, 2026
Merged

jaschdoc merged 3 commits into
mainfrom
annotation-default-values

Conversation

@jaschdoc
@jaschdoc jaschdoc commented Sep 8, 2026
Copy link
Copy Markdown
Collaborator

This PR adds the capability to load in a KLib in KaValueParameterSymbol.getDefaultValue() and inspect the FIR to obtain the default value. This PR also refactors the function into separate branches so it's clearer to read.

Depends on #3199
Closes #2356

@jaschdoc
jaschdoc force-pushed the annotation-default-values branch 2 times, most recently from f3e8490 to 32c66f3 Compare September 8, 2026 14:39
@jaschdoc
jaschdoc marked this pull request as ready for review September 8, 2026 14:39
@jaschdoc
jaschdoc enabled auto-merge September 8, 2026 14:39
@jaschdoc
jaschdoc force-pushed the annotation-default-values branch from 32c66f3 to 9b7732b Compare September 9, 2026 08:25
@jaschdoc
jaschdoc marked this pull request as draft September 9, 2026 08:28
auto-merge was automatically disabled September 9, 2026 08:28

Pull request was converted to draft

@jaschdoc
jaschdoc force-pushed the annotation-default-values branch from 9b7732b to b310ac3 Compare September 9, 2026 08:45
@jaschdoc
jaschdoc marked this pull request as ready for review September 9, 2026 09:24
@jaschdoc
jaschdoc enabled auto-merge September 9, 2026 10:34
@jaschdoc
jaschdoc force-pushed the annotation-default-values branch 3 times, most recently from f0a1922 to 63928d2 Compare September 14, 2026 12:20
@jaschdoc
jaschdoc force-pushed the annotation-default-values branch from 63928d2 to df7a7c0 Compare September 15, 2026 12:49
@jaschdoc
jaschdoc marked this pull request as draft September 18, 2026 12:16
auto-merge was automatically disabled September 18, 2026 12:16

Pull request was converted to draft

The implementation deserializes the KLib and inspects the FIR AST
to obtain the default annotation value.
@jaschdoc
jaschdoc force-pushed the annotation-default-values branch from df7a7c0 to a001eb4 Compare September 21, 2026 08:37
@jaschdoc
jaschdoc marked this pull request as ready for review September 21, 2026 0 8000 9:34
@jaschdoc
jaschdoc enabled auto-merge September 21, 2026 09:34
@jaschdoc
jaschdoc added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit 4bb8fc9 Sep 24, 2026
28 checks passed
@jaschdoc
jaschdoc deleted the annotation-default-values branch September 24, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KSP2 version 2.1.20-RC-1.0.30 crashes with NoSuchElementException: Collection contains no element matching the predicate

2 participants

0