90 references to NotNullIfNotNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (90)
Semantics\LambdaTests.cs (3)
4206new[] { source, MaybeNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, MemberNotNullAttributeDefinition, MemberNotNullWhenAttributeDefinition }, 4639var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, NotNullAttributeDefinition }); 4976new[] { source, AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, NotNullIfNotNullAttributeDefinition },
Semantics\LocalFunctionTests.cs (1)
6094var comp = CreateCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (83)
32020var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 32024var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 32069var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, 32110var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32155var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32220var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32259var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32324var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32373var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32424var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32498var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32558var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32615var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32672var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32717var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 32742var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33141var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33145var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33176var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33180var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33211var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33215var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33248var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33252var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33290var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33294var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33317var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33345var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33372var comp2 = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 33420var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33424var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33455var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33459var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33494var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33498var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33512var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 33549var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33553var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33589var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, lib_cs }); 33593var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 33636var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33640var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33683var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33687var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33761var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33765var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33811var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33815var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33923var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, lib_cs }); 33927var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition }); 33998var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition, lib_cs }); 34002var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullAttributeDefinition }); 34026var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34049var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34075var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34101var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34130var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34157var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34188var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34225var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34261var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34298var comp1 = CreateNullableCompilation(new[] { source1, source2, NotNullIfNotNullAttributeDefinition }); 34309var reference = CreateNullableCompilation(new[] { source1, NotNullIfNotNullAttributeDefinition }).EmitToImageReference(); 34341var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34374var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34402var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34430var comp = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, source }); 34623var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source }); 35733var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 54001CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }).VerifyDiagnostics( 57994var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable(TestOptions.ReleaseExe)); 70395var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70483var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70548var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70605var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70656var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 70708var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70755var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70808var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 78689var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }); 144471var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144702var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 144814var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable());
Semantics\UninitializedNonNullableFieldTests.cs (3)
2398var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2424var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable()); 2438var comp = CreateCompilation(new[] { source, NotNullIfNotNullAttributeDefinition }, options: WithNullableEnable());