Skip to content

Structural types in declarations #297

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

Merged
merged 1 commit into from
Jun 10, 2023

Conversation

susliko
Copy link
Collaborator

@susliko susliko commented Jun 10, 2023

Problem

Structural types in declarations are not parsed:

val x: F { val y: Int }

Solution

Remove -1 precedence for $._structural_type branch of $.compount_type, resolve conflict with $._type explicitly

Extra changes

Removed some unused conflict resolutions

@susliko susliko force-pushed the structural-types branch 2 times, most recently from 45a4f33 to bc9fb98 Compare June 10, 2023 19:00
Problem
-------
Structural types in declarations are not parsed:
```
val x: F { val y: Int }
```

Solution
-------
Remove -1 precedence for `$._structural_type` branch of  `$.compount_type`, resolve conflict with `$._type` explicitly

Extra changes
-------
Removed some unused conflict resolutions
@susliko susliko requested a review from eed3si9n June 10, 2023 19:02
Copy link
Collaborator

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@susliko susliko merged commit 3573bf7 into tree-sitter:master Jun 10, 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

Successfully merging this pull request may close these issues.

2 participants