36 references to ConstraintTypesNoUseSiteDiagnostics
Microsoft.CodeAnalysis.CSharp (36)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2991
var constraintTypes = typeParameter.
ConstraintTypesNoUseSiteDiagnostics
;
Compiler\ClsComplianceChecker.cs (1)
559
foreach (TypeWithAnnotations constraintType in typeParameter.
ConstraintTypesNoUseSiteDiagnostics
)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
736
Debug.Assert(type.
ConstraintTypesNoUseSiteDiagnostics
.Length == other.
ConstraintTypesNoUseSiteDiagnostics
.Length);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
257
foreach (var type in AdaptedTypeParameterSymbol.
ConstraintTypesNoUseSiteDiagnostics
)
FlowAnalysis\NullableWalker.cs (1)
9301
foreach (var constraintType in typeParameter1.
ConstraintTypesNoUseSiteDiagnostics
)
Lowering\LocalRewriter\LocalRewriter.cs (1)
398
typeParameters.Any(static t => t.
ConstraintTypesNoUseSiteDiagnostics
.Any(static t => t.ContainsNativeIntegerWrapperType())))
Symbols\ConstraintsHelper.cs (2)
1223
foreach (var constraintType in typeParameter.
ConstraintTypesNoUseSiteDiagnostics
)
1260
foreach (var constraintType in typeParameter.
ConstraintTypesNoUseSiteDiagnostics
)
Symbols\MemberSignatureComparer.cs (2)
680
var constraintTypes1 = typeParameter1.
ConstraintTypesNoUseSiteDiagnostics
;
681
var constraintTypes2 = typeParameter2.
ConstraintTypesNoUseSiteDiagnostics
;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
467
return CalculateIsReferenceTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
);
584
return CalculateIsValueTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
);
Symbols\PublicModel\TypeParameterSymbol.cs (2)
66
return _underlying.
ConstraintTypesNoUseSiteDiagnostics
.GetPublicSymbols();
71
_underlying.
ConstraintTypesNoUseSiteDiagnostics
.ToPublicAnnotations();
Symbols\Source\SourceTypeParameterSymbol.cs (9)
256
var constraintTypes = this.
ConstraintTypesNoUseSiteDiagnostics
;
306
&&
ConstraintTypesNoUseSiteDiagnostics
.Any(static t => t.ContainsNativeIntegerWrapperType()))
330
if (this.
ConstraintTypesNoUseSiteDiagnostics
.Any(static c => c.NeedsNullableAttribute()))
340
this.
ConstraintTypesNoUseSiteDiagnostics
.IsEmpty &&
363
var constraintTypes = this.
ConstraintTypesNoUseSiteDiagnostics
;
419
else if (!this.HasValueTypeConstraint && this.
ConstraintTypesNoUseSiteDiagnostics
.IsEmpty && this.IsNotNullable == false)
926
return ((object)typeParameter != null) && (typeParameter.IsValueTypeFromConstraintTypes || CalculateIsValueTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
));
944
return ((object)typeParameter != null) && (typeParameter.IsReferenceTypeFromConstraintTypes || CalculateIsReferenceTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
));
997
var constraintTypes = map.SubstituteTypes(typeParameter.
ConstraintTypesNoUseSiteDiagnostics
);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
706
p.
ConstraintTypesNoUseSiteDiagnostics
.Any((typeArgument, containingType) => typeArgument.Type.Equals(containingType, ComparisonForUserDefinedOperators),
Symbols\SubstitutedTypeParameterSymbol.cs (1)
155
if (_underlyingTypeParameter.
ConstraintTypesNoUseSiteDiagnostics
.IsEmpty)
Symbols\Symbol.cs (2)
1386
if (GetUnificationUseSiteDiagnosticRecursive(ref result, typeParameter.
ConstraintTypesNoUseSiteDiagnostics
, owner, ref checkedTypes))
1674
foreach (var constraintType in typeParameter.
ConstraintTypesNoUseSiteDiagnostics
)
Symbols\TypeParameterSymbol.cs (3)
93
var result =
ConstraintTypesNoUseSiteDiagnostics
;
364
/// Called by <see cref="
ConstraintTypesNoUseSiteDiagnostics
"/>, <see cref="InterfacesNoUseSiteDiagnostics"/>, <see cref="EffectiveBaseClass"/>, and <see cref="DeducedBaseType"/>.
555
ImmutableArray<TypeWithAnnotations> constraintTypes = this.
ConstraintTypesNoUseSiteDiagnostics
;
Symbols\TypeParameterSymbolExtensions.cs (1)
21
foreach (var constraintType in typeParameter1.
ConstraintTypesNoUseSiteDiagnostics
)
Symbols\TypeSymbolExtensions.cs (1)
119
var constraintTypes = ((TypeParameterSymbol)type).
ConstraintTypesNoUseSiteDiagnostics
;
Symbols\VarianceSafety.cs (1)
262
foreach (TypeWithAnnotations constraintType in typeParameter.
ConstraintTypesNoUseSiteDiagnostics
)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (2)
84
return _underlyingTypeParameter.IsReferenceTypeFromConstraintTypes || CalculateIsReferenceTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
);
132
return _underlyingTypeParameter.IsValueTypeFromConstraintTypes || CalculateIsValueTypeFromConstraintTypes(
ConstraintTypesNoUseSiteDiagnostics
);