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

Bug Kotlin: functional interface can not be handled #324

Open
mylinhdao opened this issue Apr 17, 2024 · 1 comment
Open

Bug Kotlin: functional interface can not be handled #324

mylinhdao opened this issue Apr 17, 2024 · 1 comment
Labels
blocked bug Something isn't working

Comments

@mylinhdao
Copy link
Collaborator

mylinhdao commented Apr 17, 2024

The following code of functional interface cannot be parsed correctly by tree-sitter-kotlin, which cause to uncorrect calculation of "classes", "functions" and "complexity" metrics:

fun interface IntPredicate {
    fun accept(i: Int): Boolean

There is already a PR for this in fwcd/tree-sitter-kotlin#103 .
As soon as this is merged and released, we need to adjust node-type-config.json

@mylinhdao mylinhdao added the bug Something isn't working label Apr 17, 2024
@mylinhdao mylinhdao mentioned this issue Apr 17, 2024
3 tasks
@bricka
Copy link

bricka commented Apr 19, 2024

Related to fwcd/tree-sitter-kotlin#87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants