11 overrides of ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (9)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
80
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
74
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
483
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\CrefTypeParameterSymbol.cs (1)
145
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
160
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Source\SourceTypeParameterSymbol.cs (3)
530
internal override bool?
ReferenceTypeConstraintIsNullable
672
internal override bool?
ReferenceTypeConstraintIsNullable
916
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
88
internal override bool?
ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
70
internal override bool?
ReferenceTypeConstraintIsNullable
Symbols\SimpleTypeParameterSymbol.cs (1)
66
internal override bool?
ReferenceTypeConstraintIsNullable
58 references to ReferenceTypeConstraintIsNullable
Microsoft.CodeAnalysis.CSharp (7)
Symbols\ConstraintsHelper.cs (1)
1052
typeParameter.
ReferenceTypeConstraintIsNullable
== false &&
Symbols\PublicModel\TypeParameterSymbol.cs (1)
36
_underlying.
ReferenceTypeConstraintIsNullable
switch
Symbols\Source\SourceTypeParameterSymbol.cs (3)
322
if (this.HasReferenceTypeConstraint && this.
ReferenceTypeConstraintIsNullable
!= null)
402
switch (this.
ReferenceTypeConstraintIsNullable
)
921
return ((object)typeParameter != null) ? typeParameter.
ReferenceTypeConstraintIsNullable
: false;
Symbols\TypeParameterSymbol.cs (1)
540
return !this.
ReferenceTypeConstraintIsNullable
;
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
92
return _underlyingTypeParameter.
ReferenceTypeConstraintIsNullable
;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (2)
1673
Assert.Equal(expectedConstraintIsNullable, typeParameter.
ReferenceTypeConstraintIsNullable
);
1744
Assert.Equal(expectedConstraintIsNullable, typeParameter.
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
72
get { return _sourceTypeParameter.
ReferenceTypeConstraintIsNullable
; }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (47)
Semantics\NullableReferenceTypesTests.cs (47)
93924
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
93934
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
93975
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
93988
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
94035
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
94041
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
94082
Assert.True(t1.
ReferenceTypeConstraintIsNullable
);
94095
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
94701
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
94716
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
94768
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
94774
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
94892
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
94907
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
94999
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
95014
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
95065
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
95083
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
95138
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
95155
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
95206
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
95221
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
95262
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
95296
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
95321
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
95364
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
95580
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
95595
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
101083
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
101096
Assert.False(t1.
ReferenceTypeConstraintIsNullable
);
101110
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
101124
Assert.True(t2.
ReferenceTypeConstraintIsNullable
);
101187
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
101194
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
101264
Assert.False(t11.
ReferenceTypeConstraintIsNullable
);
101271
Assert.True(t22.
ReferenceTypeConstraintIsNullable
);
104548
Assert.Null(tm1.
ReferenceTypeConstraintIsNullable
);
120468
Assert.Equal(typeParametersBaseline[i].constraintIsNullable, t.
ReferenceTypeConstraintIsNullable
);
133294
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
133390
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
133413
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
133435
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
133457
Assert.Null(t.
ReferenceTypeConstraintIsNullable
);
133483
Assert.True(t.
ReferenceTypeConstraintIsNullable
);
133509
Assert.False(t.
ReferenceTypeConstraintIsNullable
);
134533
Assert.True(f.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
134535
Assert.Null(f.PartialImplementationPart.TypeParameters[0].
ReferenceTypeConstraintIsNullable
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
205
typeParameter.
ReferenceTypeConstraintIsNullable
== true;