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)
254
internal override bool?
ReferenceTypeConstraintIsNullable
=> null;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
57
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
88
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 (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)
97778
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97788
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97829
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97842
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97889
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97895
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97936
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97949
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98555
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98570
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98622
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98628
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98746
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98761
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98853
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98868
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98919
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98937
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98992
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99009
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99060
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99075
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99116
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99150
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99175
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99218
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99434
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99449
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104937
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104950
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104964
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104978
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
105041
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105048
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105118
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105125
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108402
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124322
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137145
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137241
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137264
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137286
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137308
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137334
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137360
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138914
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138916
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;