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