I found in some C# source code the following line:
if(!(context.Compilation.GetTypeByMetadataName("Xunit.FactAttribute")
is { } factAttribute))
and here is another one:
if(!(diagnostic.Location.SourceTree is { } tree))
What is the meaning of the curly braces ({ }
) after the is
operator?