because it's exponentially more complicated to spec order of execution when replacement is involved
Leandro T. C. Melo
hi... I have an unexpected situation: an object propSym (of type IPropertySymbol) whose Name is null, ie, propSym.Name == null holds I don't have any context about the source in question because this error is coming from a (customer) log my understanding is that propSym.Name could return an empty string but not null
I'm wondering whether this could happen anyhow... does anyone have a hint?
I'd like to analyze the dataflow of a ConstructorInitializerSyntax Unfortenately it is not an expression nor a statement it has the same characteristics as a statement - but it does not inherit from it (because it is only valid at a single position...) For now I "solved" it by creating a dummy method with an ObjectCreationExpressionSyntax of the base / delegated constructor and analyzed that the result is fine - but I need to map the new symbols back to the old ones Could we allow AnalyzeDataFlow not only for statements and expression's but also for ConstructorInitializer expressions?
Or do you have another good idea?
@ltcmelo it could be an indexer
indexers do not have a name ...
that they are mapped to IPropertySymbol is a bit strange, but ...
I think in VB they can have names - in csharp not
Leandro T. C. Melo
@bernd5 thanks but an indexer does have a valid name
but that is not a roslyn question it is a runtime question
Hi, why are all the Microsoft.CodeAnalysis* NuGet packages of version 4.0.0 unlisted at NuGet.org and why there's no 4.0.0 version of Microsoft.VisualStudio.LanguageServices yet? Are these waiting for .NET Conf? It's confusing because VS 2022 is out already.
how is it that I get build errors that are not pushed to the Error List?
Sounds like a bug. Please report it
Mohammad Hamdy Ghanem
Remove unused local function? This is too scary!
what is scary?
Paul M Cohen
For VB functions that are Event Handlers appear as unused and VS 2022 removes handles clauses sometimes so the function would be deleted.
That's a bug if so. Please file.
Is it still the case that debugging Roslyn Analyzers/ CodeFixProviders can only be done via the VSIX Extension project? Is it possible to debug a unit test that is written? As in step into the Analyzer code?
I've always used a unit test to step into analyzer code
never heard of a VSIX project being "the only way" to debug an analyzer
Do you use a specific helper method to invoke your Analyzer code?