dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.02k stars 4.03k forks source link

Symbol completion doesn't work on empty nameof in certain attributes #60812

Open jcouv opened 2 years ago

jcouv commented 2 years ago
        [Fact]
        public async Task ParameterNotAvailableInMethodAttributeNameofWithNoArgument()
        {
            var source = @"
class C
{
    [Some(nameof($$))]
    void M(int parameter) { }
}
";
            // An invocation may not be considered a 'nameof' operator unless it has one argument
            await VerifyItemIsAbsentAsync(MakeMarkup(source), "parameter");
        }

Relates to https://github.com/dotnet/roslyn/issues/40524

CyrusNajmabadi commented 4 days ago

Closing out due to lack of prism hits.