109 references to DisallowNullAttributeDefinition
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
FieldKeywordTests.cs (5)
6584var comp = CreateCompilation([source, NotNullAttributeDefinition, DisallowNullAttributeDefinition]); 6758var comp = CreateCompilation([source, DisallowNullAttributeDefinition]); 6781var comp = CreateCompilation([source, DisallowNullAttributeDefinition]); 6912var comp = CreateCompilation([source, DisallowNullAttributeDefinition]); 6936var comp = CreateCompilation([source, DisallowNullAttributeDefinition]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (104)
Semantics\LambdaTests.cs (4)
4486var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4533var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4686var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 4725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, parseOptions: TestOptions.RegularPreview);
Semantics\NullableReferenceTypesTests.cs (100)
20795", DisallowNullAttributeDefinition }, options: WithNullableEnable()); 20837", DisallowNullAttributeDefinition }, options: WithNullableEnable()); 32799var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32840var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32912var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32983var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 34483var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 34629var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source }); 34709var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 39591new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39662new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39720new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39786var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39864new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39902new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39948new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40000new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40612var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 40645var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41018var comp = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41601var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41626var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 41731var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41861var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 42267var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43783var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43809var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43893var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 43949var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43972var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43995var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44023var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44082var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 44174var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44234var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44274var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44293var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 44336var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44360var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44374var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source0 }); 44424var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44487var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44529var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44605var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44703var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44734var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44782var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44885var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44922var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition, lib_cs }); 44948var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44968var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45017var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45052var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45094var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45139var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45184var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45219var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45312var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45357var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45378var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45400var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45432var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45512var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45527var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45548var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45563var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45584var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45603var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45618var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45637var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45653var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45672var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45687var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 48525var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48557var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48849var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 51538CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 53916CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 54183CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 70034var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70189var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70229var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70714var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70761var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 72219", AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 72836var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82023var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82300CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()).VerifyDiagnostics( 91974var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92478var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 149658var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 149723var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149771var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149808var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149853var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 154968var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 155093comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 155154comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 159010var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159070var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition });