-
Notifications
You must be signed in to change notification settings - Fork 49
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
Update tree-sitter and each grammars to v0.19 #552
Conversation
Codecov Report
@@ Coverage Diff @@
## master #552 +/- ##
==========================================
- Coverage 25.97% 25.61% -0.37%
==========================================
Files 45 45
Lines 5666 5746 +80
Branches 851 851
==========================================
Hits 1472 1472
- Misses 3660 3740 +80
Partials 534 534
Continue to review full report at Codecov.
|
8ae91ca
to
596a928
Compare
72c7e44
to
41b1819
Compare
fef341f
to
21b6fc6
Compare
[ | ||
(sloc, 5, usize), // The number of lines is 5 | ||
(ploc, 5, usize), // The number of code lines is 5 | ||
(lloc, 7, usize), // The number of statements is 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marco-c I don't know if I counted the number of statements correctly. Could you re-check, please?
7689507
to
17f7d3f
Compare
This PR is ready to be reviewed. I covered all possible cases extracted from minimal tests and notified upstream when there were parse errors. |
Can you list here in a comment all the issues you filed upstream? So we have a way to track them. |
List of regressions that have been found for
|
17f7d3f
to
8c3a4fb
Compare
@@ -212,7 +212,17 @@ impl Checker for TypescriptCode { | |||
ClassDeclaration, | |||
ArrowFunction | |||
); | |||
mk_else_if!(IfStatement); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems for both Rust and TypeScript you made the same change. What if we changed the mk_else_if!
macro instead? Is there any language which still needs the previous implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JavaScript, Python, Mozcpp need the previous implementation
This PR updates the
tree-sitter
crate and eachrust-code-analysis
grammar tov0.19
Ticks an item when there are no significant differences in the grammar