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