11 overrides of ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (11)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
82
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
74
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
484
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\CrefTypeParameterSymbol.cs (1)
150
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
165
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\SourceTypeParameterSymbol.cs (2)
545
internal override bool?
ReferenceTypeConstraintIsNullable
645
internal abstract override bool?
ReferenceTypeConstraintIsNullable
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
53
internal override bool?
ReferenceTypeConstraintIsNullable
=> null;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
253
internal override bool?
ReferenceTypeConstraintIsNullable
=> null;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
57
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
88
internal override bool?
ReferenceTypeConstraintIsNullable
57 references to ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (7)
Symbols\ConstraintsHelper.cs (1)
1157
typeParameter.
ReferenceTypeConstraintIsNullable
== false &&
Symbols\PublicModel\TypeParameterSymbol.cs (1)
36
_underlying.
ReferenceTypeConstraintIsNullable
switch
Symbols\Source\SourceTypeParameterSymbol.cs (3)
327
if (this.HasReferenceTypeConstraint && this.
ReferenceTypeConstraintIsNullable
!= null)
408
switch (this.
ReferenceTypeConstraintIsNullable
)
975
return ((object)typeParameter != null) ? typeParameter.
ReferenceTypeConstraintIsNullable
: false;
Symbols\TypeParameterSymbol.cs (1)
541
return !this.
ReferenceTypeConstraintIsNullable
;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
92
return _underlyingTypeParameter.
ReferenceTypeConstraintIsNullable
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (2)
1673
Assert.Equal(expectedConstraintIsNullable, typeParameter.
ReferenceTypeConstraintIsNullable
);
1744
Assert.Equal(expectedConstraintIsNullable, typeParameter.
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\NullableReferenceTypesTests.cs (47)
97694
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97704
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97745
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97758
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97805
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97811
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97852
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97865
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98471
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98486
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98538
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98544
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98662
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98677
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98769
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98784
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98835
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98853
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98908
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98925
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98976
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98991
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99032
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99066
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99091
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99134
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99350
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99365
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104853
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104866
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104880
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104894
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
104957
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104964
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105034
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105041
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108318
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124238
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137064
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137160
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137183
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137205
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137227
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137253
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137279
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138833
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138835
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;