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)
26420", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 26463", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 26514", MemberNotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 28611", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 28635", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 28747var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 28901", MaybeNullWhenAttributeDefinition }); 28933", MaybeNullWhenAttributeDefinition }); 28970", MaybeNullWhenAttributeDefinition }); 29342var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29588var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 29630var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 29654", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 29689", MaybeNullWhenAttributeDefinition }); 29727", MaybeNullWhenAttributeDefinition }); 29943", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 29975", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30005", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30041", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30961", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 30992", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 31355", MaybeNullWhenAttributeDefinition }); 31387", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 31419", MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition }, options: WithNullableEnable()); 31453", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31479", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31510", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 31541", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 33595var lib = CreateNullableCompilation(new[] { NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, lib_cs }); 33599var comp2 = CreateNullableCompilation(new[] { source, lib_cs, NotNullIfNotNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 38558", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 38583", MaybeNullWhenAttributeDefinition }, options: WithNullableEnable()); 41573var comp = CreateNullableCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 42128", MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition }); 42311var comp = CreateNullableCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42354var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42411var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42454var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42484var comp = CreateNullableCompilation(new[] { NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42517var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 42846var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullAttributeDefinition, NotNullWhenAttributeDefinition, source.Replace("TYPE", type) }); 42908var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43348var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 43442var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43465var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43494var comp = CreateCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43562var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43603var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, source }); 43673var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 43720var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, MaybeNullAttributeDefinition, source }); 45708var comp = CreateNullableCompilation(new[] { MaybeNullWhenAttributeDefinition, NotNullWhenAttributeDefinition, source }); 47249var comp = CreateCompilation(new[] { MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48733var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 48758var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullWhenAttributeDefinition, source }); 50254var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50333var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50412var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50476var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50548var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 50644var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52366var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52453var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52548var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52662var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52930var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 52978var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53039var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53098var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53139var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 53191var comp = CreateNullableCompilation(new[] { source, NotNullWhenAttributeDefinition, MaybeNullWhenAttributeDefinition }); 70081var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, MaybeNullWhenAttributeDefinition }); 156859var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156886var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156928var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156964var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 156998var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition }); 157174var comp = CreateCompilation(new[] { source, MaybeNullWhenAttributeDefinition });