11 overrides of HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (9)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
70public override bool HasReferenceTypeConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
58public override bool HasReferenceTypeConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
454public override bool HasReferenceTypeConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
135public override bool HasReferenceTypeConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
150public override bool HasReferenceTypeConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (3)
512public override bool HasReferenceTypeConstraint 645public override bool HasReferenceTypeConstraint 898public override bool HasReferenceTypeConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
72public override bool HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
57public override bool HasReferenceTypeConstraint
Symbols\SimpleTypeParameterSymbol.cs (1)
56public override bool HasReferenceTypeConstraint
70 references to HasReferenceTypeConstraint
Microsoft.CodeAnalysis.CSharp (22)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
935Debug.Assert(type.HasReferenceTypeConstraint == other.HasReferenceTypeConstraint);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
290return AdaptedTypeParameterSymbol.HasReferenceTypeConstraint;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
36return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.HasReferenceTypeConstraint;
Symbols\ConstraintsHelper.cs (6)
445Debug.Assert(!deducedBase.IsValueType || typeParameter.HasReferenceTypeConstraint); 448else if (deducedBase.IsNullableType() && (typeParameter.HasValueTypeConstraint || typeParameter.HasReferenceTypeConstraint)) 450diagnosticsBuilder.Add(GenerateConflictingConstraintsError(typeParameter, deducedBase, classConflict: typeParameter.HasReferenceTypeConstraint)); 895if (typeParameter.HasReferenceTypeConstraint) 1051if (typeParameter.HasReferenceTypeConstraint && 1328return typeParameter.HasReferenceTypeConstraint || TypeParameterSymbol.CalculateIsReferenceTypeFromConstraintTypes(constraintTypes);
Symbols\MemberSignatureComparer.cs (2)
616(typeParameter1.HasReferenceTypeConstraint != typeParameter2.HasReferenceTypeConstraint) ||
Symbols\PublicModel\TypeParameterSymbol.cs (2)
38false when !_underlying.HasReferenceTypeConstraint => CodeAnalysis.NullableAnnotation.None, 87bool ITypeParameterSymbol.HasReferenceTypeConstraint => _underlying.HasReferenceTypeConstraint;
Symbols\Source\SourceTypeParameterSymbol.cs (4)
322if (this.HasReferenceTypeConstraint && this.ReferenceTypeConstraintIsNullable != null) 334return !this.HasReferenceTypeConstraint && 400if (this.HasReferenceTypeConstraint) 903return ((object)typeParameter != null) && typeParameter.HasReferenceTypeConstraint;
Symbols\TypeParameterSymbol.cs (3)
522if (this.HasReferenceTypeConstraint) 538if (this.HasReferenceTypeConstraint) 624/// This API returns false when <see cref="HasReferenceTypeConstraint"/> is false.
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
76return _underlyingTypeParameter.HasReferenceTypeConstraint;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Emit\NoPiaEmbedTypes.cs (5)
1746Assert.False(t1.HasReferenceTypeConstraint); 1753Assert.False(t2.HasReferenceTypeConstraint); 1761Assert.False(t5.HasReferenceTypeConstraint); 1768Assert.False(t6.HasReferenceTypeConstraint); 1775Assert.True(t7.HasReferenceTypeConstraint);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Attributes\AttributeTests_Nullable.cs (2)
1672Assert.True(typeParameter.HasReferenceTypeConstraint); 1743Assert.True(typeParameter.HasReferenceTypeConstraint);
Emit\UnmanagedTypeModifierTests.cs (1)
1385Assert.False(typeParameter.HasReferenceTypeConstraint);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
59get { return _sourceTypeParameter.HasReferenceTypeConstraint; }
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
HoistedThisTests.cs (1)
1395CheckIteratorOverloading(source, m => m.TypeParameters.Single().HasReferenceTypeConstraint);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (26)
Semantics\GenericConstraintsTests.cs (19)
455Assert.False(typeParameter.HasReferenceTypeConstraint); 473Assert.False(typeParameter.HasReferenceTypeConstraint); 492Assert.True(typeParameter.HasReferenceTypeConstraint); 511Assert.False(typeParameter.HasReferenceTypeConstraint); 979Assert.False(typeParameter.HasReferenceTypeConstraint); 999Assert.False(typeParameter.HasReferenceTypeConstraint); 1013Assert.True(typeParameter.HasReferenceTypeConstraint); 1030Assert.False(typeParameter.HasReferenceTypeConstraint); 1464Assert.False(typeParameter.HasReferenceTypeConstraint); 1484Assert.False(typeParameter.HasReferenceTypeConstraint); 1498Assert.True(typeParameter.HasReferenceTypeConstraint); 1515Assert.False(typeParameter.HasReferenceTypeConstraint); 1838Assert.True(typeParameter.HasReferenceTypeConstraint); 1856Assert.False(typeParameter.HasReferenceTypeConstraint); 2124Assert.False(typeParameter.HasReferenceTypeConstraint); 2149Assert.False(typeParameter.HasReferenceTypeConstraint); 2170Assert.False(typeParameter.HasReferenceTypeConstraint); 2200Assert.False(typeParameter.HasReferenceTypeConstraint); 2943Assert.False(typeParameter.HasReferenceTypeConstraint);
Semantics\NullableReferenceTypesTests.cs (7)
133293Assert.True(t.HasReferenceTypeConstraint); 133389Assert.True(t.HasReferenceTypeConstraint); 133412Assert.True(t.HasReferenceTypeConstraint); 133434Assert.True(t.HasReferenceTypeConstraint); 133456Assert.True(t.HasReferenceTypeConstraint); 133482Assert.True(t.HasReferenceTypeConstraint); 133508Assert.True(t.HasReferenceTypeConstraint);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\CompilationCreationTests.cs (1)
2475Assert.False(foo3TypeParam.HasReferenceTypeConstraint);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (8)
60Assert.False(varC1_T.HasReferenceTypeConstraint); 127Assert.False(varT.HasReferenceTypeConstraint); 134Assert.False(varT.HasReferenceTypeConstraint); 141Assert.False(varT.HasReferenceTypeConstraint); 149Assert.True(varT.HasReferenceTypeConstraint); 157Assert.False(varT.HasReferenceTypeConstraint); 165Assert.True(varT.HasReferenceTypeConstraint); 172Assert.True(varT.HasReferenceTypeConstraint);
Symbols\Retargeting\RetargetingTests.cs (2)
1273Assert.Equal(a.HasReferenceTypeConstraint, b.HasReferenceTypeConstraint);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
194if (typeParameter.HasReferenceTypeConstraint)