João Matos

Results 109 issues of João Matos

## Description This cleans up the parsed AST by doing the following: [Remove unused ReturnStatement.](https://github.com/FuelLabs/sway/pull/5464/commits/c058e5fd530f3186203aa21bd3d37796f8ed6768) [Refactor Declaration::ImplicitReturnExpression as Expression::ImplicitReturn](https://github.com/FuelLabs/sway/pull/5464/commits/12766711c659965d0619b6eb1cd6060d27c095b9) During the work on debugging some issues around this refactoring, an...

code quality
compiler: frontend
compiler: parser

Lets check out this code from standard library `sway-lib-std/src/bytes_conversions/b256.sw`. ``` impl b256 { pub fn from_be_bytes(bytes: Bytes) -> Self { assert(bytes.len() == 32); bytes.into(); } } ``` With https://github.com/FuelLabs/sway/pull/5464, this...

bug
P: critical
compiler: frontend

After https://github.com/FuelLabs/sway/pull/5548, we now clone the programs cache in LSP. Figure out why the `Arc` causes crashes and re-introduce optimizations.

bug

Real world example: ```rust /// Calculates the binary log. pub trait BinaryLogarithm { fn log2(self) -> Self; } impl BinaryLogarithm for u256 { fn log2(self) -> Self { use ::assert::*;...

compiler: frontend

## Description This PR introduces a hierarchy of lexical scopes to namespace modules. This might still have some bugs to work out, but I don't expect the API to need...

compiler
compiler: frontend

Closes https://github.com/mono/CppSharp/issues/1758.

Rebased version of https://github.com/mono/CppSharp/pull/1699, credit goes to @fabioanderegg

##### Brief Description C# 9 introduced covariant return types: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/covariant-returns This means we could probably get rid of this pass: https://github.com/mono/CppSharp/blob/main/src/Generator/Passes/CheckVirtualOverrideReturnCovariance.cs

##### Brief Description Investigate how we can use these to provide more optimized bindings. https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/function-pointers