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

Makes rule ids stable and enables state diffing #195

Merged
merged 2 commits into from
Feb 15, 2023
Merged

Conversation

hediet
Copy link
Member

@hediet hediet commented Feb 15, 2023

No description provided.

@hediet hediet requested a review from alexdima February 15, 2023 14:08
Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

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

Looks good! Left some minor comments.

src/main.ts Show resolved Hide resolved
src/grammar/grammar.ts Show resolved Hide resolved
src/grammar/grammar.ts Show resolved Hide resolved
src/grammar/grammar.ts Show resolved Hide resolved
src/grammar/grammar.ts Show resolved Hide resolved
src/grammar/grammar.ts Show resolved Hide resolved
Comment on lines +42 to +45
if (ruleStack) {
const diff = diffStateStacksRefEq(ruleStack, result.ruleStack);
ruleStack = applyStateStackDiff(ruleStack, diff);
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Is this change intentional? Should we have separate tests for diffing?

@hediet hediet merged commit 6260f71 into main Feb 15, 2023
@hediet hediet deleted the hediet/heavy-flamingo branch February 15, 2023 15:45
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.

3 participants