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

Can I get the specified method code block #74

Open
layxyer opened this issue May 23, 2022 · 3 comments
Open

Can I get the specified method code block #74

layxyer opened this issue May 23, 2022 · 3 comments

Comments

@layxyer
Copy link

layxyer commented May 23, 2022

I used this tool to parse the kotlin source code, but I want to get the code block of each method parsed out for the inspection of method code changes

@C-wx
Copy link

C-wx commented Feb 28, 2023

Have you solved it?

@drieks
Copy link
Collaborator

drieks commented Feb 28, 2023

Hi @C-wx,

parsing of method content is not implemented. you can access the "raw" AST, but there is no kotlinx.ast API.

@C-wx
Copy link

C-wx commented Mar 1, 2023

Thank you so much for your reply @drieks !
I should be able to identify the functionBody in the raw object and then identify the block statements to determine the two methods are equal

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

3 participants