69 references to None
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
323attributes: default, varianceKind: VarianceKind.None,
Microsoft.CodeAnalysis.CSharp (26)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3192case VarianceKind.None: 3693case VarianceKind.None:
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2888AddAllCandidates(candidates, exact, predicate: null, VarianceKind.None, conversions);
CSharpExtensions.cs (1)
253default: return VarianceKind.None;
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
330case VarianceKind.None:
FlowAnalysis\NullableWalker.cs (1)
5979refResultType = consequenceRValue.Type!.MergeEquivalentTypes(alternativeRValue.Type, VarianceKind.None);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
115get { return VarianceKind.None; }
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
146return VarianceKind.None;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
351var returnVariance = RefKind == RefKind.None ? variance : VarianceKind.None; 368_ => VarianceKind.None,
Symbols\NamedTypeSymbol.cs (3)
1068variance = VarianceKind.None; 1086return VarianceKind.None; 1091return VarianceKind.None;
Symbols\NullableAnnotationExtensions.cs (1)
71VarianceKind.None => a.EnsureCompatible(b),
Symbols\PointerTypeSymbol.cs (1)
276TypeWithAnnotations pointedAtType = PointedAtTypeWithAnnotations.MergeEquivalentTypes(((PointerTypeSymbol)other).PointedAtTypeWithAnnotations, VarianceKind.None);
Symbols\Source\CrefTypeParameterSymbol.cs (1)
122get { return VarianceKind.None; }
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
137get { return VarianceKind.None; }
Symbols\Source\SourceNamedTypeSymbol.cs (1)
611mergedConstraintTypes[index1] = constraintType1.MergeEquivalentTypes(constraintType2, VarianceKind.None);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
80return VarianceKind.None;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
43public override VarianceKind Variance => VarianceKind.None;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
237public override VarianceKind Variance => VarianceKind.None;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
88get { return VarianceKind.None; }
Symbols\VarianceSafety.cs (4)
91Debug.Assert(container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)); 108if (container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)) 306if (requireInputSafety && requireOutputSafety && typeParam.Variance != VarianceKind.None) 403case VarianceKind.None:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
DocumentationComments\CrefTests.cs (1)
1560AssertEx.All(actualTypeParameters, p => p.Variance == VarianceKind.None);
Symbols\CompilationCreationTests.cs (1)
2485Assert.Equal(VarianceKind.None, foo3TypeParam.Variance);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (5)
76Assert.Equal(VarianceKind.None, varC1_T.Variance); 144Assert.Equal(VarianceKind.None, varT.Variance); 152Assert.Equal(VarianceKind.None, varT.Variance); 160Assert.Equal(VarianceKind.None, varT.Variance); 168Assert.Equal(VarianceKind.None, varT.Variance);
Microsoft.CodeAnalysis.VisualBasic (17)
Binding\Binder_Utils.vb (1)
31Return VarianceKind.None
Emit\TypeParameterSymbolAdapter.vb (1)
253Case VarianceKind.None
Semantics\TypeInference\TypeArgumentInference.vb (1)
1497Debug.Assert(VarianceKind.None = parameterTypeAsNamedType.TypeParameters(typeArgumentIndex).Variance)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
110Return VarianceKind.None
Symbols\IndexedTypeParameterSymbol.vb (1)
109Return VarianceKind.None
Symbols\InstanceErrorTypeSymbol.vb (1)
268Return VarianceKind.None
Symbols\Source\CrefTypeParameterSymbol.vb (1)
124Return VarianceKind.None
Symbols\Source\SourceMemberContainerTypeSymbol.vb (6)
901Debug.Assert(namedType.TypeParameters(0).Variance = VarianceKind.None, "unexpected: a nullable type should have one generic parameter with no variance") 904VarianceKind.None, 929argumentRequiredVariance = VarianceKind.None 934argumentRequiredVariance = VarianceKind.None 1006requiredVariance = VarianceKind.None 1080requiredVariance = VarianceKind.None
Symbols\Source\SourceNamedTypeSymbol.vb (1)
838Dim variance As VarianceKind = VarianceKind.None
Symbols\Source\SourceTypeParameterSymbol.vb (1)
334Return VarianceKind.None
Syntax\SyntaxFacts.vb (1)
623Return VarianceKind.None
Utilities\VarianceAmbiguity.vb (1)
148Case VarianceKind.None
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Emit\NoPiaEmbedTypes.vb (6)
1559Assert.Equal(VarianceKind.None, t1.Variance) 1568Assert.Equal(VarianceKind.None, t2.Variance) 1576Assert.Equal(VarianceKind.None, t3.Variance) 1584Assert.Equal(VarianceKind.None, t4.Variance) 1592Assert.Equal(VarianceKind.None, t5.Variance) 1601Assert.Equal(VarianceKind.None, t6.Variance)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Symbols\SimpleTypeParameterSymbol.vb (1)
75Return VarianceKind.None
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (9)
SymbolsTests\CompilationCreationTests.vb (1)
1937Assert.Equal(VarianceKind.None, foo3TypeParam.Variance)
SymbolsTests\Metadata\PE\LoadingGenericTypeParameters.vb (5)
75Assert.Equal(VarianceKind.None, C1_T.Variance) 143Assert.Equal(VarianceKind.None, T.Variance) 151Assert.Equal(VarianceKind.None, T.Variance) 159Assert.Equal(VarianceKind.None, T.Variance) 167Assert.Equal(VarianceKind.None, T.Variance)
SymbolsTests\Source\MethodTests.vb (2)
638Assert.Equal(VarianceKind.None, tpT.Variance) 643Assert.Equal(VarianceKind.None, tpU.Variance)
SymbolsTests\Source\TypeTests.vb (1)
657Assert.Equal(VarianceKind.None, typeParams(0).Variance)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactsTest.vb (1)
1008Assert.Equal(VarianceKind.None, SyntaxFacts.VarianceKindFromToken(keywordToken))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
323attributes: default, varianceKind: VarianceKind.None,