4 implementations of IMethodSymbol_ReturnNullableAnnotation
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
63public NullableAnnotation ReturnNullableAnnotation => ReturnType.NullableAnnotation;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\MethodSymbol.cs (1)
92CodeAnalysis.NullableAnnotation IMethodSymbol.ReturnNullableAnnotation
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1062Private ReadOnly Property IMethodSymbol_ReturnNullableAnnotation As NullableAnnotation Implements IMethodSymbol.ReturnNullableAnnotation
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractMethodSymbol.cs (1)
63public NullableAnnotation ReturnNullableAnnotation => ReturnType.NullableAnnotation;
10 references to IMethodSymbol_ReturnNullableAnnotation
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
454types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\Source\NullablePublicAPITests.cs (6)
293Assert.Equal(result, member.ReturnNullableAnnotation); 574Assert.Equal(method.ReturnNullableAnnotation, method.Parameters[0].NullableAnnotation); 575Assert.Equal(method.ReturnNullableAnnotation, method.Parameters[0].Type.NullableAnnotation); 579Assert.Equal(result, method.ReturnNullableAnnotation); 761Assert.Equal(result, method.ReturnNullableAnnotation); 1864Assert.Equal(expectedAnnotation, methodSymbol.ReturnNullableAnnotation);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\MethodSymbol.vb (1)
1062Private ReadOnly Property IMethodSymbol_ReturnNullableAnnotation As NullableAnnotation Implements IMethodSymbol.ReturnNullableAnnotation
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
454types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
124nullableRegex = regexMethodSymbol.ReturnNullableAnnotation == NullableAnnotation.Annotated;