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

`nameof` operator is not provided as an operation #8874

Closed genlu closed 7 years ago

genlu commented 8 years ago

For example

var a = nameof(x);

the IVariableDeclaration operation has a None operation as InitialValue.

genlu commented 8 years ago

@JohnHamby Should this be fixed for 1.2?

mavasani commented 7 years ago

Dupe of https://github.com/dotnet/roslyn/issues/19954