mun-lang / mun

Source code for the Mun language and runtime.
https://mun-lang.org
Other
1.88k stars 73 forks source link

feat: method resolution #561

Closed baszalmstra closed 7 months ago

baszalmstra commented 7 months ago

Adds methods to perform method resolution for impl blocks. Also implements hir::Display for a number of types because they are used in snapshot tests.

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 86.06061% with 46 lines in your changes are missing coverage. Please review.

Project coverage is 86.57%. Comparing base (b68a952) to head (d3c5ba6). Report is 3 commits behind head on main.

Files Patch % Lines
crates/mun_hir/src/display.rs 65.27% 25 Missing :warning:
crates/mun_hir/src/path.rs 50.00% 12 Missing :warning:
crates/mun_hir/src/visibility.rs 42.85% 4 Missing :warning:
crates/mun_hir/src/method_resolution.rs 98.56% 3 Missing :warning:
crates/mun_hir/src/code_model/function.rs 91.66% 1 Missing :warning:
crates/mun_hir/src/name.rs 80.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #561 +/- ## ========================================== - Coverage 87.30% 86.57% -0.74% ========================================== Files 276 274 -2 Lines 32035 32348 +313 ========================================== + Hits 27968 28005 +37 - Misses 4067 4343 +276 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

baszalmstra commented 7 months ago

The CI seems to be failing because of an issue when uploading to codecov.

Wodann commented 7 months ago

Thanks for this! This makes my changes simpler too 😃