The .NET Compiler Platform ("Roslyn") provides open-source C# and Visual Basic compilers with rich code analysis APIs.
dotnet-maestro[bot] on darc-main-81a580e4-64fe-4695-a860-10155858872f
Update dependencies from https:… (compare)
dotnet-bot on release
@CyrusNajmabadi are you saying I should implement CompletionService?
To clarify my use case, I want to insert some non existent method names into the Code Completion list a user sees when they're looking for members of a type. I'm not sure how CompletionService helps me
As an aside you're not going to like my generator:
It creates a series of new Compilations in a loop:
First it check if anyone's called span.Select
.
If they do it generates a method Select(Span, func)
which returns a SelectSpan
.
It then creates a new compilation which contains SelectSpan
and checks if anyone's called selectSpan.Select
. If so it generates SelectSelectSpan Select(selectSpan, func)
.
And so on etc.
This is the only way I could get chaining to work span.Select(x => x + 1).Where(x => x > 5).Skip(10).ToArray()
without generating an exponential number of methods.
I wonder if there's a better way to do this?
SelectSpan
doesn't exist yet.
System.Linq
fallback
SymbolFinder.FindReferencesAsync
does not return at all. and I CAN'T reproduce it in a small repro (works fine in a small repro). Any ideas how to investigate it further in the big solution? I have no more ideas))
System.Linq
is unused and could be removed):using System.Linq; //!!FOR DEBUG!!!!!!!!!!!!!!
var
the need is not that big anymore.
using Foo= Namespace.Foo.Bar.MyComplexType<X, Y, Z>
...