mozilla / rust-code-analysis

Library to analyze and collect metrics on source code
https://mozilla.github.io/rust-code-analysis/
262 stars 46 forks source link

Use a new structure for Tree #1052

Closed Luni-4 closed 1 year ago

Luni-4 commented 1 year ago

This PR adds a new structure to better abstract a Tree, thus placing all tree-sitter inside a single file. Then this structure has been used around the code

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 92.85% and no project coverage change.

Comparison is base (2eba6d9) 74.09% compared to head (bfdc0fa) 74.09%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1052 +/- ## ======================================= Coverage 74.09% 74.09% ======================================= Files 64 64 Lines 16034 16039 +5 ======================================= + Hits 11880 11884 +4 - Misses 4154 4155 +1 ``` | [Impacted Files](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1052?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla) | Coverage Δ | | |---|---|---| | [src/node.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1052?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL25vZGUucnM=) | `89.34% <91.66%> (-0.03%)` | :arrow_down: | | [src/parser.rs](https://app.codecov.io/gh/mozilla/rust-code-analysis/pull/1052?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=mozilla#diff-c3JjL3BhcnNlci5ycw==) | `34.32% <100.00%> (-3.70%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.