11 overrides of ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (9)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
80internal override bool? ReferenceTypeConstraintIsNullable
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
74internal override bool? ReferenceTypeConstraintIsNullable
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
483internal override bool? ReferenceTypeConstraintIsNullable
Symbols\Source\CrefTypeParameterSymbol.cs (1)
145internal override bool? ReferenceTypeConstraintIsNullable
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
160internal override bool? ReferenceTypeConstraintIsNullable
Symbols\Source\SourceTypeParameterSymbol.cs (3)
530internal override bool? ReferenceTypeConstraintIsNullable 672internal override bool? ReferenceTypeConstraintIsNullable 916internal override bool? ReferenceTypeConstraintIsNullable
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
88internal override bool? ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
70internal override bool? ReferenceTypeConstraintIsNullable
Symbols\SimpleTypeParameterSymbol.cs (1)
66internal override bool? ReferenceTypeConstraintIsNullable
58 references to ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (7)
Symbols\ConstraintsHelper.cs (1)
1052typeParameter.ReferenceTypeConstraintIsNullable == false &&
Symbols\PublicModel\TypeParameterSymbol.cs (1)
36_underlying.ReferenceTypeConstraintIsNullable switch
Symbols\Source\SourceTypeParameterSymbol.cs (3)
322if (this.HasReferenceTypeConstraint && this.ReferenceTypeConstraintIsNullable != null) 402switch (this.ReferenceTypeConstraintIsNullable) 921return ((object)typeParameter != null) ? typeParameter.ReferenceTypeConstraintIsNullable : false;
Symbols\TypeParameterSymbol.cs (1)
540return !this.ReferenceTypeConstraintIsNullable;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
92return _underlyingTypeParameter.ReferenceTypeConstraintIsNullable;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (2)
1673Assert.Equal(expectedConstraintIsNullable, typeParameter.ReferenceTypeConstraintIsNullable); 1744Assert.Equal(expectedConstraintIsNullable, typeParameter.ReferenceTypeConstraintIsNullable);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
72get { return _sourceTypeParameter.ReferenceTypeConstraintIsNullable; }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\NullableReferenceTypesTests.cs (47)
93924Assert.False(t1.ReferenceTypeConstraintIsNullable); 93934Assert.True(t2.ReferenceTypeConstraintIsNullable); 93975Assert.False(t1.ReferenceTypeConstraintIsNullable); 93988Assert.True(t2.ReferenceTypeConstraintIsNullable); 94035Assert.False(t1.ReferenceTypeConstraintIsNullable); 94041Assert.True(t2.ReferenceTypeConstraintIsNullable); 94082Assert.True(t1.ReferenceTypeConstraintIsNullable); 94095Assert.True(t2.ReferenceTypeConstraintIsNullable); 94701Assert.False(t11.ReferenceTypeConstraintIsNullable); 94716Assert.True(t22.ReferenceTypeConstraintIsNullable); 94768Assert.True(t22.ReferenceTypeConstraintIsNullable); 94774Assert.True(t2.ReferenceTypeConstraintIsNullable); 94892Assert.False(t11.ReferenceTypeConstraintIsNullable); 94907Assert.True(t22.ReferenceTypeConstraintIsNullable); 94999Assert.False(t11.ReferenceTypeConstraintIsNullable); 95014Assert.True(t22.ReferenceTypeConstraintIsNullable); 95065Assert.False(t11.ReferenceTypeConstraintIsNullable); 95083Assert.True(t22.ReferenceTypeConstraintIsNullable); 95138Assert.False(t11.ReferenceTypeConstraintIsNullable); 95155Assert.True(t22.ReferenceTypeConstraintIsNullable); 95206Assert.False(t11.ReferenceTypeConstraintIsNullable); 95221Assert.True(t22.ReferenceTypeConstraintIsNullable); 95262Assert.True(t22.ReferenceTypeConstraintIsNullable); 95296Assert.True(t2.ReferenceTypeConstraintIsNullable); 95321Assert.True(t2.ReferenceTypeConstraintIsNullable); 95364Assert.True(t2.ReferenceTypeConstraintIsNullable); 95580Assert.False(t11.ReferenceTypeConstraintIsNullable); 95595Assert.True(t22.ReferenceTypeConstraintIsNullable); 101083Assert.False(t11.ReferenceTypeConstraintIsNullable); 101096Assert.False(t1.ReferenceTypeConstraintIsNullable); 101110Assert.True(t22.ReferenceTypeConstraintIsNullable); 101124Assert.True(t2.ReferenceTypeConstraintIsNullable); 101187Assert.False(t11.ReferenceTypeConstraintIsNullable); 101194Assert.True(t22.ReferenceTypeConstraintIsNullable); 101264Assert.False(t11.ReferenceTypeConstraintIsNullable); 101271Assert.True(t22.ReferenceTypeConstraintIsNullable); 104548Assert.Null(tm1.ReferenceTypeConstraintIsNullable); 120468Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.ReferenceTypeConstraintIsNullable); 133294Assert.True(t.ReferenceTypeConstraintIsNullable); 133390Assert.False(t.ReferenceTypeConstraintIsNullable); 133413Assert.False(t.ReferenceTypeConstraintIsNullable); 133435Assert.True(t.ReferenceTypeConstraintIsNullable); 133457Assert.Null(t.ReferenceTypeConstraintIsNullable); 133483Assert.True(t.ReferenceTypeConstraintIsNullable); 133509Assert.False(t.ReferenceTypeConstraintIsNullable); 134533Assert.True(f.TypeParameters[0].ReferenceTypeConstraintIsNullable); 134535Assert.Null(f.PartialImplementationPart.TypeParameters[0].ReferenceTypeConstraintIsNullable);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205typeParameter.ReferenceTypeConstraintIsNullable == true;