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)
1157
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)
97716
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97726
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97767
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97780
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97827
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97833
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97874
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97887
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98493
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98508
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98560
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98566
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98684
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98699
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98791
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98806
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98857
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98875
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98930
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98947
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98998
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99013
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99054
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99088
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99113
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99156
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99372
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99387
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104875
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104888
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104902
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104916
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
104979
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104986
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105056
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105063
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108340
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124260
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137083
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137179
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137202
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137224
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137246
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137272
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137298
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138852
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138854
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;