Adriano Carlos Verona

Results 56 issues of Adriano Carlos Verona

```C# int i = 10; Console.WriteLine(i.GetType().Name); ``` generates ```C# //int i = 10; var lv_i_6 = new VariableDefinition(assembly.MainModule.TypeSystem.Int32); md_TopLevelStatements_1.Body.Variables.Add(lv_i_6); il_TopLevelMain_3.Emit(OpCodes.Ldc_I4, 10); il_TopLevelMain_3.Emit(OpCodes.Stloc, lv_i_6); // All good so far //Console.WriteLine(i.GetType().Name); //...

:bug: bug
area:value-types

[Documentation](https://learn.microsoft.com/en-us/archive/msdn-magazine/2016/connect/net-framework-what-s-new-in-csharp-7-0#deconstructors)

feature:deconstructor

As of today whenever we want to call user's attention to some aspect of the generated code we have two alternatives 1. emit a comment in the generated code: far...

fixed-in-dev-branch
feature:generated-code-issues-awareness

```C# using System; using System.Collections.Generic; IEnumerable foos = null; Console.WriteLine(foos.GetEnumerator()); class Foo { } ``` Generates: ```C# il_TopLevelMain_6.Emit(OpCodes.Callvirt, assembly.MainModule.ImportReference(TypeHelpers.ResolveMethod(typeof(System.Collections.Generic.IEnumerable), "GetEnumerator",System.Reflection.BindingFlags.Default|System.Reflection.BindingFlags.Instance|System.Reflection.BindingFlags.Public))); ``` Notice the `typeof(System.Collections.Generic.IEnumerable)` expression. Since `Foo` is defined in...

:bug: bug

Most likely, either the implementation of `TypeHelpers.ResolveMethod()` or the arguments it gets are incorrect. ## Example 1 ```C# using System; using System.Threading.Tasks; var tcs = new TaskCompletionSource(); var t2 =...

:bug: bug
area:generics
wip

Cases that are still relevant should have an issue created

[Proposal](https://github.com/dotnet/csharplang/blob/main/proposals/params-collections.md) [Cases to support](https://sharplab.io/#v2:EYLgtghglgdgNAFxAJwK4wD4AEBMBGAWACgsAGAAizwBYBuY4qgTgAoBKeoxncgMQHt+xAN7Fy4ytXIBZFgAcIyCGADO5AMoKYAHlgIAfOT0q25YQF8xErFOnaAKvvmLlazRB2OjMBCbOWiCXIrcRsZZyVVcgAlAFMIABMAeRgAGwBPdx09Q2NTCxDgwOtbCNdKPABmXR9cnz8C4vFCsNkFSLUAGSgVBBqDb198gPMgA)

enhancement
C#13

Investigate untested scenarios by looking into coverage data[^1]. For instance, according to [coverage data](https://app.codecov.io/github/adrianoc/cecilifier/blob/vnext/Cecilifier.Core%2FExtensions%2FISymbolExtensions.cs#L24), `ISymbolExtensions.ToElementKind()` is missing tests around **enums**, **interfaces**, **arrays**, etc. The goal of this task is: 1....

enhancement
wip

Error --- System.NullReferenceException: Expression 'Context.GetTypeInfo(expression).Type' is expected to be non null. at Cecilifier.Core.Extensions.ISymbolExtensions.EnsureNotNull[T](T symbol, String expression) in /home/adriano/Projects/study/DotNet/Cecilifier/Cecilifier.Core/Extensions/ISymbolExtensions.cs:line 118 at Cecilifier.Core.AST.SyntaxWalkerBase.ResolveExpressionType(ExpressionSyntax expression) in /home/adriano/Projects/study/DotNet/Cecilifier/Cecilifier.Core/AST/SyntaxWalkerBase.cs:line 375 at Cecilifier.Core.AST.StatementVisitor.AddLocalVariable(TypeSyntax type, VariableDeclaratorSyntax localVar,...

:bug: bug

```CSharp var f = new Foo(); Consume(f.Buffer); void Consume(System.Span span) {} [System.Runtime.CompilerServices.InlineArray(10)] public struct IntBuffer { private int _element0; } class Foo { public IntBuffer Buffer; } ```

:bug: bug