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

Functional interface parsing has ERROR #87

Open
TTitcombe opened this issue Apr 15, 2023 · 2 comments · Fixed by #103
Open

Functional interface parsing has ERROR #87

TTitcombe opened this issue Apr 15, 2023 · 2 comments · Fixed by #103
Labels
bug Something isn't working grammar Related to the grammar

Comments

@TTitcombe
Copy link

TTitcombe commented Apr 15, 2023

There is an error parsing functional interfaces.

For example (from kotlinlang.org):

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

The node which should represent the body/accept method is an error, rather than correctly parsing out the abstract function.

@fwcd fwcd added bug Something isn't working grammar Related to the grammar labels Oct 6, 2023
bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Oct 10, 2023
bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Oct 25, 2023
bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Jan 16, 2024
bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Apr 19, 2024
@bricka
Copy link
Contributor

bricka commented May 24, 2024

@VladimirMakaev Could you reopen this issue, since we had to rollback the change?

And copying my comment from the MR:

Did it break because of the generated parser? If so, how can we push this forward? Could someone who can generate the parser correctly check out this branch, generate the parser, and then push that?

bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Jul 28, 2024
@amaanq
Copy link
Contributor

amaanq commented Aug 30, 2024

I believe this is fixed and parses correctly @ https://github.com/tree-sitter-grammars/tree-sitter-kotlin

bricka added a commit to bricka/tree-sitter-kotlin that referenced this issue Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grammar Related to the grammar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants