11 overrides of HasNotNullConstraint
Microsoft.CodeAnalysis.CSharp (11)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
87public override bool HasNotNullConstraint => false;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
82public override bool HasNotNullConstraint => false;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
505public override bool HasNotNullConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
155public override bool HasNotNullConstraint => false;
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
170public override bool HasNotNullConstraint => false;
Symbols\Source\SourceTypeParameterSymbol.cs (2)
553public override bool HasNotNullConstraint 643public abstract override bool HasNotNullConstraint { get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
33public override bool HasNotNullConstraint => false;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
233public override bool HasNotNullConstraint => false;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
62public override bool HasNotNullConstraint => false;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
96public override bool HasNotNullConstraint
52 references to HasNotNullConstraint
Microsoft.CodeAnalysis.CSharp (9)
Symbols\ConstraintsHelper.cs (1)
1151if (typeParameter.HasNotNullConstraint && typeArgument.GetValueNullableAnnotation().IsAnnotated() && !typeArgument.Type.IsNonNullableValueType())
Symbols\PublicModel\TypeParameterSymbol.cs (1)
95bool ITypeParameterSymbol.HasNotNullConstraint => _underlying.HasNotNullConstraint;
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (2)
463typeParameter.HasNotNullConstraint || typeParameter.AllowsRefLikeType; 664else if (typeParam.HasNotNullConstraint)
Symbols\Source\SourceTypeParameterSymbol.cs (3)
335if (this.HasNotNullConstraint) 416else if (this.HasNotNullConstraint) 983return this.OverriddenTypeParameter?.HasNotNullConstraint == true;
Symbols\TypeParameterSymbol.cs (1)
534if (this.HasNotNullConstraint || this.HasValueTypeConstraint)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
100return _underlyingTypeParameter.HasNotNullConstraint;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (32)
Attributes\AttributeTests_Nullable.cs (1)
1799Assert.True(typeParameter.HasNotNullConstraint);
RefStructInterfacesTests.cs (31)
4381Assert.False(t.HasNotNullConstraint); 4434Assert.False(t.HasNotNullConstraint); 4487Assert.False(t.HasNotNullConstraint); 4495Assert.False(dt.HasNotNullConstraint); 4521Assert.False(ct.HasNotNullConstraint); 4550Assert.False(t.HasNotNullConstraint); 4572Assert.False(t.HasNotNullConstraint); 4604Assert.False(t.HasNotNullConstraint); 4630Assert.False(t.HasNotNullConstraint); 4662Assert.False(t.HasNotNullConstraint); 4697Assert.False(t.HasNotNullConstraint); 4734Assert.False(t.HasNotNullConstraint); 4760Assert.False(t.HasNotNullConstraint); 4789Assert.False(t.HasNotNullConstraint); 4826Assert.False(t.HasNotNullConstraint); 4855Assert.False(t.HasNotNullConstraint); 4877Assert.False(t.HasNotNullConstraint); 4906Assert.True(t.HasNotNullConstraint); 4928Assert.True(t.HasNotNullConstraint); 4956Assert.False(t.HasNotNullConstraint); 4983Assert.False(t.HasNotNullConstraint); 5014Assert.False(t.HasNotNullConstraint); 5043Assert.False(t.HasNotNullConstraint); 5068Assert.False(t.HasNotNullConstraint); 5097Assert.False(t.HasNotNullConstraint); 5121Assert.False(t.HasNotNullConstraint); 5768Assert.False(t.HasNotNullConstraint); 5796Assert.False(t.HasNotNullConstraint); 5803Assert.False(u.HasNotNullConstraint); 5829Assert.False(t.HasNotNullConstraint); 5836Assert.False(u.HasNotNullConstraint);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\NullableReferenceTypesTests.cs (11)
100383Assert.True(t1.HasNotNullConstraint); 100541Assert.True(t1.HasNotNullConstraint); 100549Assert.True(t2.HasNotNullConstraint); 100987Assert.True(t1.HasNotNullConstraint); 103232Assert.True(tf1.HasNotNullConstraint); 103256Assert.False(tf1.HasNotNullConstraint); 103281Assert.True(tf1.HasNotNullConstraint); 103306Assert.True(tf1.HasNotNullConstraint); 103330Assert.False(tf1.HasNotNullConstraint); 103381Assert.False(tf1.HasNotNullConstraint); 103408Assert.True(tf1.HasNotNullConstraint);