Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visiting KSFunctionDeclaration body #1379

Closed
NikolaDespotoski opened this issue May 9, 2023 · 1 comment
Closed

Visiting KSFunctionDeclaration body #1379

NikolaDespotoski opened this issue May 9, 2023 · 1 comment

Comments

@NikolaDespotoski
Copy link

I'm planning on writing KSP plug that will evaluate KSFunctionDeclaration body and eventually generate another function.

Right now, I can see in the how KSP models the code guide, that KSFunctionDeclaration is unable to see the expressions of the function. I'm interested in binary expressions and delegations of local properties.

I'm aware that I can achieve this with kotlin plugin and IR, but I don't want to use kapt.

Is this feature anywhere in your roadmap?

@neetopia
Copy link
Collaborator

No parsing function body is not supported within KSP's scope. Writing your own compiler plugin is more suitable for this use case.

@neetopia neetopia closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2023
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

No branches or pull requests

2 participants