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

Fix the tokens order for Node trait #166

Closed
wants to merge 5 commits into from

Conversation

JohnnyMorganz
Copy link
Collaborator

Fixes #161
Also reorders struct fields in places where the current order was incorrect

Currently only implemented for TableConstructor, to see how it would work. Also added a test case for it.

@@ -260,6 +261,31 @@ impl Default for TableConstructor<'_> {
}
}

impl Sealed for TableConstructor<'_> {}
impl<'a> NodeTrait<'a> for TableConstructor<'a> {
Copy link
Owner

Choose a reason for hiding this comment

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

We have a separate file for these implementations instead of mod.rs, which is already pretty beefy.

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.

Node .tokens() is not correctly ordered for ContainedSpans
2 participants