49 references to In
Microsoft.CodeAnalysis.CSharp (21)
Binder\ForEachLoopBinder.cs (1)
1818interfaces = MethodTypeInferrer.ModuloReferenceTypeNullabilityDifferences(interfaces, VarianceKind.In);
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3215case VarianceKind.In: 3707case VarianceKind.In:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
2312allInterfaces = ModuloReferenceTypeNullabilityDifferences(allInterfaces, VarianceKind.In); 2381else if (sourceTypeArgument.Type.IsReferenceType && typeParameter.Variance == VarianceKind.In) 2731else if (sourceTypeArgument.Type.IsReferenceType && typeParameter.Variance == VarianceKind.In) 2882AddAllCandidates(candidates, upper, predicate: null, VarianceKind.In, conversions); 2917MergeOrRemoveCandidates(candidates, upper, predicate: null, initialCandidates, conversions, VarianceKind.In, ref useSiteInfo); 3356Debug.Assert(variance == VarianceKind.In || variance == VarianceKind.Out);
CSharpExtensions.cs (1)
252case SyntaxKind.InKeyword: return VarianceKind.In;
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
332case VarianceKind.In:
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
767case VarianceKind.In:
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
366(VarianceKind.In, RefKind.None) => VarianceKind.Out, 367(VarianceKind.Out, RefKind.None) => VarianceKind.In,
Symbols\NamedTypeSymbol.cs (3)
1083case VarianceKind.In: 1086case VarianceKind.In: 1089return VarianceKind.In;
Symbols\NullableAnnotationExtensions.cs (1)
69VarianceKind.In => a.Meet(b),
Symbols\VarianceSafety.cs (3)
314else if (requireOutputSafety && typeParam.Variance == VarianceKind.In) 398case VarianceKind.In: 451case VarianceKind.In:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
30symbol.Variance == VarianceKind.In ? InKeyword :
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (1)
137Assert.Equal(VarianceKind.In, varT.Variance);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1737VarianceKind.In => InKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\TypeParameterGenerator.cs (1)
30symbol.Variance == VarianceKind.In ? InKeyword :
Microsoft.CodeAnalysis.VisualBasic (18)
Binding\Binder_Conversions.vb (1)
854Case VarianceKind.In
Binding\Binder_Utils.vb (1)
33Return VarianceKind.In
Emit\TypeParameterSymbolAdapter.vb (1)
255Case VarianceKind.In
Semantics\Conversions.vb (1)
2800Case VarianceKind.In
Semantics\TypeInference\TypeArgumentInference.vb (1)
1487Case VarianceKind.In
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
471Case VarianceKind.In
Symbols\NamedTypeSymbolExtensions.vb (1)
100Case VarianceKind.In, VarianceKind.Out
Symbols\Source\SourceMemberContainerTypeSymbol.vb (9)
671(typeParam.Variance = VarianceKind.In AndAlso requiredVariance <> VarianceKind.In) Then 921Case VarianceKind.In 923Case VarianceKind.In 926argumentRequiredVariance = VarianceKind.In 1008requiredVariance = VarianceKind.In 1043GenerateVarianceDiagnosticsForType(constraint, VarianceKind.In, VarianceContext.Constraint, infosBuffer) 1076requiredVariance = VarianceKind.In 1118GenerateVarianceDiagnosticsForType(type, VarianceKind.In, VarianceContext.Complex, infosBuffer)
Syntax\SyntaxFacts.vb (1)
620Return VarianceKind.In
Utilities\VarianceAmbiguity.vb (1)
123Case VarianceKind.In
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 (2)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (1)
136Assert.Equal(VarianceKind.In, T.Variance)
SymbolsTests\Source\TypeTests.vb (1)
662Assert.Equal(VarianceKind.In, typeParams(1).Variance)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1004Assert.Equal(VarianceKind.In, SyntaxFacts.VarianceKindFromToken(keywordToken))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2562Case VarianceKind.In
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)),