82 references to MaybeNullWhenAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (82)
Semantics\LambdaTests.cs (2)
4582var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, MaybeNullAttributeDefinition }); 4976new[] { source, AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, NotNullIfNotNullAttributeDefinition },
Semantics\LocalFunctionTests.cs (3)
6125var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6163var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9); 6263var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }, parseOptions: TestOptions.Regular9);
Semantics\NullableReferenceTypesTests.cs (77)
26414", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 26457", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 26508", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 28605", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 28629", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 28741var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 28895", MaybeNullWhenAttributeDefinition }); 28927", MaybeNullWhenAttributeDefinition }); 28964", MaybeNullWhenAttributeDefinition }); 29336var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29582var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29624var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 29648", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 29683", MaybeNullWhenAttributeDefinition }); 29721", MaybeNullWhenAttributeDefinition }); 29937", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 29969", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 29999", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30035", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30955", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30986", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 31349", MaybeNullWhenAttributeDefinition }); 31381", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 31413", MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 31447", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31473", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31504", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31535", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 33589var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, lib_cs }); 33593var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 38552", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 38577", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 41567var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 42122", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 42305var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42348var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42405var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42448var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42478var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42511var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42840var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42902var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43342var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43436var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43459var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43488var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43556var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43597var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43667var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43714var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 45702var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, source }); 47243var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48727var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48752var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, 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 }); 70075var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 156853var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156880var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156922var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156958var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156992var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157168var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition });