98 references to NotNullWhenAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (98)
Semantics\LambdaTests.cs (2)
4582var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition }); 5016var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.RegularPreview);
Semantics\NullableReferenceTypesTests.cs (96)
20542", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 20586", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 20624", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 20756", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 23033", MemberNotNullAttributeDefinition, NotNullWhenAttributeDefinition }, parseOptions: TestOptions.Regular9); 28874CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }).VerifyDiagnostics( 29097", NotNullWhenAttributeDefinition }); 29127", NotNullWhenAttributeDefinition }); 29171var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29188var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29208var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition }); 29235var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29273var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29304var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29370var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29400var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29423var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29442var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 29624var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 31215", NotNullWhenAttributeDefinition }); 31262", NotNullWhenAttributeDefinition }); 31323", NotNullWhenAttributeDefinition }); 31447", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31473", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31504", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31535", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31562", NotNullWhenAttributeDefinition }); 31674var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 31749", NotNullWhenAttributeDefinition }); 31781", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31810", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31837", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31869", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31907", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31939", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31957", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 31984", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 33957", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 36861", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 36894", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 36923", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 36946", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37828", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37849", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37881", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37920", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37956", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 37985", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38014", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38144", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38168", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38193", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38227", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38303", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38336", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38370", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38488", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38520", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 38604", NotNullWhenAttributeDefinition, NotNullAttributeDefinition }, options: WithNullableEnable()); 38633", NotNullWhenAttributeDefinition, NotNullAttributeDefinition }, options: WithNullableEnable()); 39057", NotNullWhenAttributeDefinition }); 39411", NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 42084var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 42122", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 42478var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42575var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42661var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("CONSTRAINT", constraint) }); 42840var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42873var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 43264var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, source }); 43290var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 43316var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45702var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45762var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 45787var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, NotNullWhenAttributeDefinition, source }); 50248var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50327var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50406var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50470var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50542var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50638var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52360var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52447var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52542var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52656var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52924var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52972var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53033var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53092var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53133var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53185var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53250var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 53282var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition }); 75348var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }); 130987var comp = CreateCompilation(new[] { source, NotNullWhenAttributeDefinition }, options: WithNullableEnable()); 131026var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition });