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)
97721
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97731
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97772
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97785
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97832
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
97838
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
97879
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
97892
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98498
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98513
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98565
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98571
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
98689
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98704
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98796
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98811
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98862
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98880
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
98935
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
98952
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99003
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99018
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99059
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
99093
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99118
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99161
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
99377
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
99392
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104880
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104893
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
104907
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104921
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
104984
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
104991
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
105061
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
105068
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
108345
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
124265
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
137088
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137184
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137207
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
137229
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137251
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
137277
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
137303
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
138857
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
138859
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;