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)
522
internal override bool?
ReferenceTypeConstraintIsNullable
622
internal abstract override bool?
ReferenceTypeConstraintIsNullable
{ get; }
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
53
internal override bool?
ReferenceTypeConstraintIsNullable
=> null;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
256
internal override bool?
ReferenceTypeConstraintIsNullable
=> null;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
57
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
90
internal override bool?
ReferenceTypeConstraintIsNullable
58 references to ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (8)
Symbols\ConstraintsHelper.cs (1)
1155
typeParameter.
ReferenceTypeConstraintIsNullable
== false &&
Symbols\PublicModel\TypeParameterSymbol.cs (1)
36
_underlying.
ReferenceTypeConstraintIsNullable
switch
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
606
switch (typeParam.
ReferenceTypeConstraintIsNullable
)
Symbols\Source\SourceTypeParameterSymbol.cs (2)
327
if (this.HasReferenceTypeConstraint && this.
ReferenceTypeConstraintIsNullable
!= null)
952
return ((object)typeParameter != null) ? typeParameter.
ReferenceTypeConstraintIsNullable
: false;
Symbols\TypeParameterSymbol.cs (2)
541
return !this.
ReferenceTypeConstraintIsNullable
;
733
switch (this.
ReferenceTypeConstraintIsNullable
)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
94
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)
97766
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97776
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97817
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97830
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97877
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97883
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97924
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97937
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98543
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98558
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98610
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98616
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98734
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98749
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98841
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98856
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98907
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98925
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98980
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98997
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99048
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99063
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99104
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99138
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99163
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99206
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99422
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99437
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104925
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104938
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104952
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104966
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
105029
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105036
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105106
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105113
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108390
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124310
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137133
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137229
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137252
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137274
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137296
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137322
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137348
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138902
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138904
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;