11 overrides of HasNotNullConstraint
Microsoft.CodeAnalysis.CSharp (9)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
85public override bool HasNotNullConstraint => false;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
82public override bool HasNotNullConstraint => false;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
504public override bool HasNotNullConstraint
Symbols\Source\CrefTypeParameterSymbol.cs (1)
150public override bool HasNotNullConstraint => false;
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
165public override bool HasNotNullConstraint => false;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
538public override bool HasNotNullConstraint 663public override bool HasNotNullConstraint 925public override bool HasNotNullConstraint
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
96public override bool HasNotNullConstraint
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
75public override bool HasNotNullConstraint
Symbols\SimpleTypeParameterSymbol.cs (1)
71public override bool HasNotNullConstraint => false;
20 references to HasNotNullConstraint
Microsoft.CodeAnalysis.CSharp (7)
Symbols\ConstraintsHelper.cs (1)
1046if (typeParameter.HasNotNullConstraint && typeArgument.GetValueNullableAnnotation().IsAnnotated() && !typeArgument.Type.IsNonNullableValueType())
Symbols\PublicModel\TypeParameterSymbol.cs (1)
93bool ITypeParameterSymbol.HasNotNullConstraint => _underlying.HasNotNullConstraint;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
330if (this.HasNotNullConstraint) 410else if (this.HasNotNullConstraint) 929return this.OverriddenTypeParameter?.HasNotNullConstraint == true;
Symbols\TypeParameterSymbol.cs (1)
533if (this.HasNotNullConstraint || this.HasValueTypeConstraint)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
100return _underlyingTypeParameter.HasNotNullConstraint;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_Nullable.cs (1)
1799Assert.True(typeParameter.HasNotNullConstraint);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
77get { return _sourceTypeParameter.HasNotNullConstraint; }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\NullableReferenceTypesTests.cs (11)
96613Assert.True(t1.HasNotNullConstraint); 96771Assert.True(t1.HasNotNullConstraint); 96779Assert.True(t2.HasNotNullConstraint); 97217Assert.True(t1.HasNotNullConstraint); 99462Assert.True(tf1.HasNotNullConstraint); 99486Assert.False(tf1.HasNotNullConstraint); 99511Assert.True(tf1.HasNotNullConstraint); 99536Assert.True(tf1.HasNotNullConstraint); 99560Assert.False(tf1.HasNotNullConstraint); 99611Assert.False(tf1.HasNotNullConstraint); 99638Assert.True(tf1.HasNotNullConstraint);