62 references to Out
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Patterns.cs (1)
1833return bestSoFar.MergeEquivalentTypes(possiblyLessSpecificCandidate, VarianceKind.Out);
Binder\Semantics\BestTypeInferrer.cs (1)
297return type1.MergeEquivalentTypes(type2, VarianceKind.Out);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3208case VarianceKind.Out: 3700case VarianceKind.Out:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (7)
2377if (sourceTypeArgument.Type.IsReferenceType && typeParameter.Variance == VarianceKind.Out) 2683allInterfaces = ModuloReferenceTypeNullabilityDifferences(allInterfaces, VarianceKind.Out); 2727if (sourceTypeArgument.Type.IsReferenceType && typeParameter.Variance == VarianceKind.Out) 2877AddAllCandidates(candidates, lower, lowerPredicate, VarianceKind.Out, conversions); 2909MergeOrRemoveCandidates(candidates, lower, lowerPredicate, initialCandidates, conversions, VarianceKind.Out, ref useSiteInfo); 3356Debug.Assert(variance == VarianceKind.In || variance == VarianceKind.Out); 3375if (variance == VarianceKind.Out)
CSharpExtensions.cs (1)
251case SyntaxKind.OutKeyword: return VarianceKind.Out;
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
334case VarianceKind.Out:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
771case VarianceKind.Out:
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
366(VarianceKind.In, RefKind.None) => VarianceKind.Out, 367(VarianceKind.Out, RefKind.None) => VarianceKind.In,
Symbols\NamedTypeSymbol.cs (4)
1052VarianceKind typeArgumentVariance = GetTypeArgumentVariance(variance, isTuple ? VarianceKind.Out : typeParameters[i].Variance); 1082return VarianceKind.Out; 1083case VarianceKind.Out: 1088case VarianceKind.Out:
Symbols\NullableAnnotationExtensions.cs (1)
70VarianceKind.Out => a.Join(b),
Symbols\VarianceSafety.cs (3)
320else if (requireInputSafety && typeParam.Variance == VarianceKind.Out) 393case VarianceKind.Out: 454case VarianceKind.Out:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
31symbol.Variance == VarianceKind.Out ? OutKeyword : default;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\DelegateTypeTests.cs (5)
15605Assert.Equal(functionTypeStringNullable, functionTypeStringNullable.MergeEquivalentTypes(functionTypeStringNullable, VarianceKind.Out)); 15606Assert.Equal(functionTypeStringNullable, functionTypeStringNullable.MergeEquivalentTypes(functionTypeStringNotNullable, VarianceKind.Out)); 15607Assert.Equal(functionTypeStringNullable, functionTypeStringNotNullable.MergeEquivalentTypes(functionTypeStringNullable, VarianceKind.Out)); 15608Assert.Equal(functionTypeStringNotNullable, functionTypeStringNotNullable.MergeEquivalentTypes(functionTypeStringNotNullable, VarianceKind.Out)); 15609Assert.Equal(functionTypeNullA, functionTypeNullA.MergeEquivalentTypes(functionTypeNullA, VarianceKind.Out));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (2)
130Assert.Equal(VarianceKind.Out, varT.Variance); 175Assert.Equal(VarianceKind.Out, varT.Variance);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1735VarianceKind.Out => OutKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
31symbol.Variance == VarianceKind.Out ? OutKeyword : default;
Microsoft.CodeAnalysis.VisualBasic (21)
Binding\Binder_Conversions.vb (3)
840Case VarianceKind.Out 908ErrorFactory.ErrorInfo(If(oneVariantDifference.TypeParameter.Variance = VarianceKind.Out, 918ReportDiagnostic(diagnostics, location, If(oneVariantDifference.TypeParameter.Variance = VarianceKind.Out,
Binding\Binder_Utils.vb (1)
35Return VarianceKind.Out
Emit\TypeParameterSymbolAdapter.vb (1)
257Case VarianceKind.Out
Semantics\Conversions.vb (1)
2789Case VarianceKind.Out
Semantics\TypeInference\TypeArgumentInference.vb (1)
1492Case VarianceKind.Out
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
474Case VarianceKind.Out
Symbols\NamedTypeSymbolExtensions.vb (1)
100Case VarianceKind.In, VarianceKind.Out
Symbols\Source\SourceMemberContainerTypeSymbol.vb (10)
473GenerateVarianceDiagnosticsForType(implemented, VarianceKind.Out, VarianceContext.Complex, infosBuffer) 671If (typeParam.Variance = VarianceKind.Out AndAlso requiredVariance <> VarianceKind.Out) OrElse 676Dim inappropriateOut As Boolean = (typeParam.Variance = VarianceKind.Out) 831If requiredVariance <> VarianceKind.Out Then 925argumentRequiredVariance = VarianceKind.Out 926Case VarianceKind.Out 931Case VarianceKind.Out 970GenerateVarianceDiagnosticsForType(method.ReturnType, VarianceKind.Out, VarianceContext.Return, infosBuffer) 1074requiredVariance = VarianceKind.Out
Syntax\SyntaxFacts.vb (1)
617Return VarianceKind.Out
Utilities\VarianceAmbiguity.vb (1)
137Case VarianceKind.Out
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
18varianceKeyword:=If(symbol.Variance = VarianceKind.In, SyntaxFactory.Token(SyntaxKind.InKeyword), If(symbol.Variance = VarianceKind.Out, SyntaxFactory.Token(SyntaxKind.OutKeyword), Nothing)),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (3)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (2)
129Assert.Equal(VarianceKind.Out, T.Variance) 174Assert.Equal(VarianceKind.Out, T.Variance)
SymbolsTests\Source\TypeTests.vb (1)
667Assert.Equal(VarianceKind.Out, typeParams(2).Variance)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1006Assert.Equal(VarianceKind.Out, SyntaxFacts.VarianceKindFromToken(keywordToken))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2514Case VarianceKind.Out
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
18varianceKeyword:=If(symbol.Variance = VarianceKind.In, SyntaxFactory.Token(SyntaxKind.InKeyword), If(symbol.Variance = VarianceKind.Out, SyntaxFactory.Token(SyntaxKind.OutKeyword), Nothing)),