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)
97775
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97785
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97826
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97839
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97886
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97892
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97933
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97946
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98552
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98567
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98619
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98625
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98743
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98758
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98850
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98865
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98916
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98934
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98989
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99006
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99057
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99072
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99113
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99147
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99172
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99215
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99431
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99446
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104934
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104947
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104961
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104975
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
105038
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105045
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105115
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105122
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108399
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124319
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137142
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137238
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137261
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137283
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137305
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137331
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137357
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138911
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138913
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;