10 overrides of Variance
Microsoft.CodeAnalysis.CSharp (10)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
113
public override VarianceKind
Variance
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
142
public override VarianceKind
Variance
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
596
public override VarianceKind
Variance
Symbols\Source\CrefTypeParameterSymbol.cs (1)
120
public override VarianceKind
Variance
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
135
public override VarianceKind
Variance
Symbols\Source\SourceTypeParameterSymbol.cs (1)
76
public override VarianceKind
Variance
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
43
public override VarianceKind
Variance
=> VarianceKind.None;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
235
public override VarianceKind
Variance
=> VarianceKind.None;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
86
public override VarianceKind
Variance
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
136
public override VarianceKind
Variance
19 references to Variance
Microsoft.CodeAnalysis.CSharp (19)
Binder\Semantics\Conversions\ConversionsBase.cs (3)
3190
switch (typeParameterSymbol.
Variance
)
3223
throw ExceptionUtilities.UnexpectedValue(typeParameterSymbol.
Variance
);
3691
switch (original.TypeParameters[i].
Variance
)
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
328
switch (AdaptedTypeParameterSymbol.
Variance
)
337
throw ExceptionUtilities.UnexpectedValue(AdaptedTypeParameterSymbol.
Variance
);
Symbols\MemberSignatureComparer.cs (2)
666
(typeParameter1.
Variance
!= typeParameter2.
Variance
))
Symbols\NamedTypeSymbol.cs (1)
1057
VarianceKind typeArgumentVariance = GetTypeArgumentVariance(variance, isTuple ? VarianceKind.Out : typeParameters[i].
Variance
);
Symbols\PublicModel\TypeParameterSymbol.cs (1)
85
VarianceKind ITypeParameterSymbol.Variance => _underlying.
Variance
;
Symbols\VarianceSafety.cs (9)
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)
314
else if (requireOutputSafety && typeParam.
Variance
== VarianceKind.In)
320
else if (requireInputSafety && typeParam.
Variance
== VarianceKind.Out)
391
switch (typeParam.
Variance
)
409
throw ExceptionUtilities.UnexpectedValue(typeParam.
Variance
);
449
switch (unsafeTypeParameter.
Variance
)
458
throw ExceptionUtilities.UnexpectedValue(unsafeTypeParameter.
Variance
);
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
140
return _underlyingTypeParameter.
Variance
;