12 overrides of IsNotNullable
Microsoft.CodeAnalysis.CSharp (10)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (1)
87internal override bool? IsNotNullable => null;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (1)
84internal override bool? IsNotNullable => null;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
513internal override bool? IsNotNullable
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
89internal override bool? IsNotNullable
Symbols\Source\CrefTypeParameterSymbol.cs (1)
152internal override bool? IsNotNullable => null;
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
167internal override bool? IsNotNullable => null;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
547internal override bool? IsNotNullable 680internal override bool? IsNotNullable 933internal override bool? IsNotNullable
Symbols\SubstitutedTypeParameterSymbol.cs (1)
151internal override bool? IsNotNullable
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EETypeParameterSymbol.cs (1)
80internal override bool? IsNotNullable
Symbols\SimpleTypeParameterSymbol.cs (1)
73internal override bool? IsNotNullable => null;
230 references to IsNotNullable
Microsoft.CodeAnalysis.CSharp (13)
FlowAnalysis\NullableWalker.cs (1)
2210if (type.Type.IsTypeParameterDisallowingAnnotationInCSharp8() && !(type.Type is TypeParameterSymbol { IsNotNullable: true }))
Symbols\ConstraintsHelper.cs (2)
1140if (typeParameter is null || typeParameter.IsNotNullable == true) 1178if (typeParameter is null || typeParameter.IsNotNullable == true)
Symbols\MemberSignatureComparer.cs (2)
658bool? isNotNullable1 = typeParameter1.IsNotNullable; 659bool? isNotNullable2 = typeParameter2.IsNotNullable;
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (1)
93return _underlyingTypeParameter.IsNotNullable;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
337this.IsNotNullable == false; 414else if (!this.HasValueTypeConstraint && this.ConstraintTypesNoUseSiteDiagnostics.IsEmpty && this.IsNotNullable == false) 937return this.OverriddenTypeParameter?.IsNotNullable;
Symbols\SubstitutedTypeParameterSymbol.cs (1)
157return _underlyingTypeParameter.IsNotNullable;
Symbols\TypeParameterSymbol.cs (1)
486bool? isNotNullable = ((TypeParameterSymbol)constraintType.Type).IsNotNullable;
Symbols\TypeSymbolExtensions.cs (2)
70return !typeParameter.IsValueType && !(typeParameter.IsReferenceType && typeParameter.IsNotNullable == true); 84return type is TypeParameterSymbol { IsValueType: false, IsNotNullable: false };
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\EETypeParameterSymbol.cs (1)
86return _sourceTypeParameter.IsNotNullable;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (216)
Semantics\NullableReferenceTypesTests.cs (216)
96367Assert.True(t11.IsNotNullable); 96371Assert.False(t22.IsNotNullable); 96375Assert.False(t33.IsNotNullable); 96379Assert.True(t44.IsNotNullable); 96402Assert.Null(t11.IsNotNullable); 96406Assert.False(t22.IsNotNullable); 96410Assert.False(t33.IsNotNullable); 96414Assert.Null(t44.IsNotNullable); 96494Assert.True(t222.IsNotNullable); 96498Assert.True(t333.IsNotNullable); 96521Assert.Null(t222.IsNotNullable); 96525Assert.Null(t333.IsNotNullable); 96575Assert.True(t1.IsNotNullable); 96614Assert.True(t1.IsNotNullable); 96657Assert.False(t1.IsNotNullable); 96664Assert.False(t2.IsNotNullable); 96696Assert.True(t1.IsNotNullable); 96716Assert.True(t1.IsNotNullable); 96772Assert.True(t1.IsNotNullable); 96780Assert.True(t2.IsNotNullable); 96815Assert.True(t1.IsNotNullable); 96822Assert.True(t2.IsNotNullable); 96843Assert.True(((MethodSymbol)comp.SourceModule.GlobalNamespace.GetMember("B.F1")).TypeParameters[0].IsNotNullable); 96860Assert.True(t1.IsNotNullable); 96867Assert.True(t2.IsNotNullable); 96899Assert.False(t1.IsNotNullable); 96949Assert.True(at1.IsNotNullable); 96961Assert.Null(impl.TypeParameters[0].IsNotNullable); 96979Assert.False(tf1.IsNotNullable); 96992Assert.Null(impl.TypeParameters[0].IsNotNullable); 97044Assert.True(at1.IsNotNullable); 97072Assert.False(tf1.IsNotNullable); 97132Assert.True(at1.IsNotNullable); 97157Assert.False(tf1.IsNotNullable); 97193Assert.True(t1.IsNotNullable); 97218Assert.True(t1.IsNotNullable); 97242Assert.True(t1.IsNotNullable); 97269Assert.True(t1.IsNotNullable); 97318Assert.True(at1.IsNotNullable); 97343Assert.False(tf1.IsNotNullable); 97400Assert.True(at1.IsNotNullable); 97425Assert.False(tf1.IsNotNullable); 98201Assert.Null(tf1.IsNotNullable); 98225Assert.Null(tf1.IsNotNullable); 98253Assert.Null(tf1.IsNotNullable); 98280Assert.Null(tf1.IsNotNullable); 98307Assert.True(tf1.IsNotNullable); 98334Assert.True(tf1.IsNotNullable); 98361Assert.Null(tf1.IsNotNullable); 98403Assert.False(tf1.IsNotNullable); 98434Assert.False(tf1.IsNotNullable); 98472Assert.False(tf1.IsNotNullable); 98507Assert.False(tf1.IsNotNullable); 98546Assert.False(tf1.IsNotNullable); 98584Assert.True(tf1.IsNotNullable); 98611Assert.True(tf1.IsNotNullable); 98639Assert.True(tf1.IsNotNullable); 98667Assert.True(tf1.IsNotNullable); 98706Assert.False(tf1.IsNotNullable); 98734Assert.False(tf1.IsNotNullable); 98761Assert.Null(tf1.IsNotNullable); 98784Assert.Null(tf1.IsNotNullable); 98811Assert.Null(tf1.IsNotNullable); 98837Assert.Null(tf1.IsNotNullable); 98863Assert.True(tf1.IsNotNullable); 98889Assert.True(tf1.IsNotNullable); 98915Assert.Null(tf1.IsNotNullable); 98955Assert.False(tf1.IsNotNullable); 98986Assert.False(tf1.IsNotNullable); 99022Assert.False(tf1.IsNotNullable); 99056Assert.False(tf1.IsNotNullable); 99094Assert.False(tf1.IsNotNullable); 99131Assert.True(tf1.IsNotNullable); 99158Assert.True(tf1.IsNotNullable); 99185Assert.True(tf1.IsNotNullable); 99212Assert.True(tf1.IsNotNullable); 99249Assert.False(tf1.IsNotNullable); 99276Assert.False(tf1.IsNotNullable); 99308Assert.Null(tf1.IsNotNullable); 99349Assert.False(tf1.IsNotNullable); 99392Assert.False(tf1.IsNotNullable); 99436Assert.False(tf1.IsNotNullable); 99463Assert.True(tf1.IsNotNullable); 99487Assert.Null(tf1.IsNotNullable); 99512Assert.True(tf1.IsNotNullable); 99537Assert.True(tf1.IsNotNullable); 99561Assert.False(tf1.IsNotNullable); 99587Assert.True(tf1.IsNotNullable); 99612Assert.Null(tf1.IsNotNullable); 99639Assert.True(tf1.IsNotNullable); 99665Assert.True(tf1.IsNotNullable); 99690Assert.False(tf1.IsNotNullable); 99721Assert.False(tf1.IsNotNullable); 99747Assert.False(tf1.IsNotNullable); 99774Assert.False(tf1.IsNotNullable); 99777Assert.Null(tf2.IsNotNullable); 99805Assert.False(tf1.IsNotNullable); 99828Assert.False(tf1.IsNotNullable); 99852Assert.False(tf1.IsNotNullable); 99855Assert.False(tf2.IsNotNullable); 99885Assert.False(tf1.IsNotNullable); 99909Assert.False(tf1.IsNotNullable); 99934Assert.False(tf1.IsNotNullable); 99937Assert.False(tf2.IsNotNullable); 99970Assert.False(tf1.IsNotNullable); 99997Assert.False(tf1.IsNotNullable); 100025Assert.False(tf1.IsNotNullable); 100028Assert.False(tf2.IsNotNullable); 100059Assert.False(tf1.IsNotNullable); 100085Assert.False(tf1.IsNotNullable); 100112Assert.False(tf1.IsNotNullable); 100115Assert.Null(tf2.IsNotNullable); 100143Assert.False(tf1.IsNotNullable); 100166Assert.False(tf1.IsNotNullable); 100190Assert.False(tf1.IsNotNullable); 100193Assert.False(tf2.IsNotNullable); 100226Assert.False(tf1.IsNotNullable); 100253Assert.False(tf1.IsNotNullable); 100281Assert.False(tf1.IsNotNullable); 100284Assert.False(tf2.IsNotNullable); 100315Assert.False(tf1.IsNotNullable); 100340Assert.False(tf1.IsNotNullable); 100366Assert.False(tf1.IsNotNullable); 100369Assert.False(tf2.IsNotNullable); 100436Assert.Null(m1.TypeParameters[0].IsNotNullable); 100437Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100458Assert.Null(m1.TypeParameters[0].IsNotNullable); 100459Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100484Assert.False(m1.TypeParameters[0].IsNotNullable); 100485Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100505Assert.False(m1.TypeParameters[0].IsNotNullable); 100506Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100555Assert.False(m1.TypeParameters[0].IsNotNullable); 100556Assert.True(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100581Assert.Null(m1.TypeParameters[0].IsNotNullable); 100582Assert.True(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100611Assert.False(m1.TypeParameters[0].IsNotNullable); 100612Assert.True(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100643Assert.Null(m1.TypeParameters[0].IsNotNullable); 100644Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100698Assert.Null(m1.TypeParameters[0].IsNotNullable); 100699Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100793Assert.False(m1.TypeParameters[0].IsNotNullable); 100794Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100820Assert.Null(m1.TypeParameters[0].IsNotNullable); 100821Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100870Assert.True(m1.TypeParameters[0].IsNotNullable); 100871Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100896Assert.True(m1.TypeParameters[0].IsNotNullable); 100897Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100927Assert.True(m1.TypeParameters[0].IsNotNullable); 100928Assert.False(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 100959Assert.False(m1.TypeParameters[0].IsNotNullable); 100960Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 101013Assert.False(m1.TypeParameters[0].IsNotNullable); 101014Assert.Null(m1.PartialImplementationPart.TypeParameters[0].IsNotNullable); 101361Assert.True(m1.TypeParameters[0].IsNotNullable); 101365Assert.True(baseM1.TypeParameters[0].IsNotNullable); 101405Assert.Null(m1.TypeParameters[0].IsNotNullable); 101409Assert.Null(baseM1.TypeParameters[0].IsNotNullable); 101454Assert.True(m1.TypeParameters[0].IsNotNullable); 101458Assert.True(baseM1.TypeParameters[0].IsNotNullable); 101490Assert.True(m1.TypeParameters[0].IsNotNullable); 101494Assert.True(baseM1.TypeParameters[0].IsNotNullable); 102431Assert.Null(m1.TypeParameters[0].IsNotNullable); 102462Assert.True(m1.TypeParameters[0].IsNotNullable); 102493Assert.False(m1.TypeParameters[0].IsNotNullable); 102525Assert.Null(m1.TypeParameters[0].IsNotNullable); 102558Assert.Null(m1.TypeParameters[0].IsNotNullable); 102591Assert.True(m1.TypeParameters[0].IsNotNullable); 102623Assert.True(m1.TypeParameters[0].IsNotNullable); 102655Assert.True(m1.TypeParameters[0].IsNotNullable); 102688Assert.True(m1.TypeParameters[0].IsNotNullable); 102718Assert.Null(m1.TypeParameters[0].IsNotNullable); 102749Assert.Null(m1.TypeParameters[0].IsNotNullable); 102780Assert.True(m1.TypeParameters[0].IsNotNullable); 102812Assert.True(m1.TypeParameters[0].IsNotNullable); 102844Assert.True(m1.TypeParameters[0].IsNotNullable); 102877Assert.True(m1.TypeParameters[0].IsNotNullable); 102908Assert.True(m1.TypeParameters[0].IsNotNullable); 102940Assert.True(m1.TypeParameters[0].IsNotNullable); 102971Assert.True(m1.TypeParameters[0].IsNotNullable); 103003Assert.True(m1.TypeParameters[0].IsNotNullable); 103033Assert.True(m1.TypeParameters[0].IsNotNullable); 103063Assert.True(m1.TypeParameters[0].IsNotNullable); 103093Assert.Null(m1.TypeParameters[0].IsNotNullable); 103123Assert.True(m1.TypeParameters[0].IsNotNullable); 103313Assert.Null(m1.TypeParameters[0].IsNotNullable); 103317Assert.Null(m2.TypeParameters[0].IsNotNullable); 103321Assert.Null(m3.TypeParameters[0].IsNotNullable); 103325Assert.Null(m4.TypeParameters[0].IsNotNullable); 103329Assert.True(m5.TypeParameters[0].IsNotNullable); 103333Assert.True(m6.TypeParameters[0].IsNotNullable); 103337Assert.False(m7.TypeParameters[0].IsNotNullable); 103341Assert.True(m8.TypeParameters[0].IsNotNullable); 103345Assert.True(m9.TypeParameters[0].IsNotNullable); 103349Assert.Null(m10.TypeParameters[0].IsNotNullable); 103384Assert.Null(m1.TypeParameters[0].IsNotNullable); 103419Assert.Null(m1.TypeParameters[0].IsNotNullable); 103450Assert.Null(m1.TypeParameters[0].IsNotNullable); 103487Assert.Null(m1.TypeParameters[0].IsNotNullable); 103523Assert.Null(m1.TypeParameters[0].IsNotNullable); 103560Assert.True(m1.TypeParameters[0].IsNotNullable); 103596Assert.True(m1.TypeParameters[0].IsNotNullable); 103634Assert.Null(t2m1.TypeParameters[0].IsNotNullable); 103638Assert.Null(t3m1.TypeParameters[0].IsNotNullable); 103681Assert.Null(t3m1.TypeParameters[0].IsNotNullable); 103719Assert.True(t2m1.TypeParameters[0].IsNotNullable); 103723Assert.True(t3m1.TypeParameters[0].IsNotNullable); 103760Assert.Null(m1.TypeParameters[0].IsNotNullable); 103796Assert.Null(m1.TypeParameters[0].IsNotNullable); 103833Assert.True(m1.TypeParameters[0].IsNotNullable); 103869Assert.True(m1.TypeParameters[0].IsNotNullable); 103905Assert.False(m1.TypeParameters[0].IsNotNullable); 103941Assert.True(m1.TypeParameters[0].IsNotNullable); 103977Assert.Null(m1.TypeParameters[0].IsNotNullable);