11 overrides of HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp (9)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
65public override bool HasConstructorConstraint
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
50public override bool HasConstructorConstraint
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
446public override bool HasConstructorConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
159public override bool HasConstructorConstraint
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
174public override bool HasConstructorConstraint
Symbols\Source\SourceTypeParameterSymbol.cs (3)
484public override bool HasConstructorConstraint 617public override bool HasConstructorConstraint 871public override bool HasConstructorConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
64public override bool HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
52public override bool HasConstructorConstraint
Symbols\SimpleTypeParameterSymbol.cs (1)
51public override bool HasConstructorConstraint
80 references to HasConstructorConstraint
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Expressions.cs (1)
5974if (!typeParameter.HasConstructorConstraint && !typeParameter.IsValueType)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
932Debug.Assert(type.HasConstructorConstraint == other.HasConstructorConstraint);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
309return AdaptedTypeParameterSymbol.HasConstructorConstraint || AdaptedTypeParameterSymbol.HasValueTypeConstraint || AdaptedTypeParameterSymbol.HasUnmanagedTypeConstraint;
Emitter\NoPia\EmbeddedTypeParameter.cs (1)
52return UnderlyingTypeParameter.AdaptedTypeParameterSymbol.HasConstructorConstraint;
Symbols\ConstraintsHelper.cs (2)
1007if (typeParameter.HasConstructorConstraint && errorIfNotSatisfiesConstructorConstraint(containingSymbol, typeParameter, typeArgument, diagnosticsBuilder)) 1388return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ? ConstructorConstraintError.None : ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType;
Symbols\MemberSignatureComparer.cs (2)
615if ((typeParameter1.HasConstructorConstraint != typeParameter2.HasConstructorConstraint) ||
Symbols\PublicModel\TypeParameterSymbol.cs (1)
95bool ITypeParameterSymbol.HasConstructorConstraint => _underlying.HasConstructorConstraint;
Symbols\Source\SourceTypeParameterSymbol.cs (1)
876return ((object)typeParameter != null) && typeParameter.HasConstructorConstraint;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
68return _underlyingTypeParameter.HasConstructorConstraint;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Emit\NoPiaEmbedTypes.cs (5)
1744Assert.False(t1.HasConstructorConstraint); 1751Assert.False(t2.HasConstructorConstraint); 1759Assert.True(t5.HasConstructorConstraint); 1766Assert.False(t6.HasConstructorConstraint); 1773Assert.False(t7.HasConstructorConstraint);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\UnmanagedTypeModifierTests.cs (3)
1003Assert.False(typeParameter.HasConstructorConstraint); // .ctor is an artifact of emit, we will ignore it on importing. 1029Assert.False(typeParameter.HasConstructorConstraint); // .ctor is an artifact of emit, we will ignore it on importing. 1386Assert.False(typeParameter.HasConstructorConstraint);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
54get { return _sourceTypeParameter.HasConstructorConstraint; }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (46)
Semantics\GenericConstraintsTests.cs (16)
474Assert.False(typeParameter.HasConstructorConstraint); 493Assert.False(typeParameter.HasConstructorConstraint); 512Assert.True(typeParameter.HasConstructorConstraint); 1000Assert.False(typeParameter.HasConstructorConstraint); 1014Assert.False(typeParameter.HasConstructorConstraint); 1031Assert.True(typeParameter.HasConstructorConstraint); 1485Assert.False(typeParameter.HasConstructorConstraint); 1499Assert.False(typeParameter.HasConstructorConstraint); 1516Assert.True(typeParameter.HasConstructorConstraint); 1839Assert.False(typeParameter.HasConstructorConstraint); 1857Assert.False(typeParameter.HasConstructorConstraint); 2125Assert.False(typeParameter.HasConstructorConstraint); 2150Assert.False(typeParameter.HasConstructorConstraint); 2171Assert.False(typeParameter.HasConstructorConstraint); 2201Assert.False(typeParameter.HasConstructorConstraint); 2944Assert.False(typeParameter.HasConstructorConstraint);
Semantics\NullableReferenceTypesTests.cs (30)
99488Assert.True(tf1.HasConstructorConstraint); 99513Assert.True(tf1.HasConstructorConstraint); 99562Assert.True(tf1.HasConstructorConstraint); 99613Assert.True(tf1.HasConstructorConstraint); 99640Assert.True(tf1.HasConstructorConstraint); 99691Assert.True(tf1.HasConstructorConstraint); 99748Assert.True(tf1.HasConstructorConstraint); 99778Assert.True(tf2.HasConstructorConstraint); 99829Assert.True(tf1.HasConstructorConstraint); 99856Assert.True(tf2.HasConstructorConstraint); 99910Assert.True(tf1.HasConstructorConstraint); 99938Assert.True(tf2.HasConstructorConstraint); 99998Assert.True(tf1.HasConstructorConstraint); 100029Assert.True(tf2.HasConstructorConstraint); 100086Assert.True(tf1.HasConstructorConstraint); 100116Assert.True(tf2.HasConstructorConstraint); 100167Assert.True(tf1.HasConstructorConstraint); 100194Assert.True(tf2.HasConstructorConstraint); 100254Assert.True(tf1.HasConstructorConstraint); 100285Assert.True(tf2.HasConstructorConstraint); 100341Assert.True(tf1.HasConstructorConstraint); 100370Assert.True(tf2.HasConstructorConstraint); 133260Assert.True(t.HasConstructorConstraint); 133292Assert.True(t.HasConstructorConstraint); 133388Assert.True(t.HasConstructorConstraint); 133411Assert.True(t.HasConstructorConstraint); 133433Assert.True(t.HasConstructorConstraint); 133455Assert.True(t.HasConstructorConstraint); 133481Assert.True(t.HasConstructorConstraint); 133507Assert.True(t.HasConstructorConstraint);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Symbols\CompilationCreationTests.cs (2)
2471Assert.False(foo3TypeParam.HasConstructorConstraint); 2473Assert.True(localC6_T.HasConstructorConstraint);
Symbols\Metadata\PE\LoadingGenericTypeParameters.cs (8)
59Assert.False(varC1_T.HasConstructorConstraint); 126Assert.False(varT.HasConstructorConstraint); 133Assert.False(varT.HasConstructorConstraint); 140Assert.True(varT.HasConstructorConstraint); 148Assert.False(varT.HasConstructorConstraint); 156Assert.False(varT.HasConstructorConstraint); 164Assert.True(varT.HasConstructorConstraint); 171Assert.True(varT.HasConstructorConstraint);
Symbols\Retargeting\RetargetingTests.cs (2)
1272Assert.Equal(a.HasConstructorConstraint, b.HasConstructorConstraint);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
190if (typeParameter.HasConstructorConstraint)