111 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()); 32793var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32834var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, MemberNotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32906var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 32977var comp = CreateNullableCompilation(new[] { source, NotNullAttributeDefinition, DisallowNullAttributeDefinition }); 34477var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 34623var comp = CreateNullableCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition, NotNullIfNotNullAttributeDefinition, source }); 34703var comp = CreateNullableCompilation(new[] { NotNullAttributeDefinition, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition, source }); 39585new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39656new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39714new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39780var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }); 39858new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39896new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39942new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 39994new[] { source, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, NotNullAttributeDefinition, MaybeNullAttributeDefinition }, 40606var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 40639var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41012var comp = CreateNullableCompilation(new[] { lib_cs, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41595var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 41620var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }, parseOptions: TestOptions.Regular9); 41725var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 41855var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 42261var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43777var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43803var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43887var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 43943var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43966var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 43989var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44017var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44076var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, source }, options: WithNullableEnable()); 44168var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44228var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44268var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 44287var comp = CreateCompilation(new[] { DisallowNullAttributeDefinition, source0 }, options: WithNullableEnable()); 44330var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44354var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44368var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source0 }); 44418var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44481var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44523var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44599var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 44697var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44728var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 44776var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 44879var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44916var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition, lib_cs }); 44942var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition, AllowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 44962var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45011var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45046var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45088var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45133var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45178var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45213var comp = CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }); 45306var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45351var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45372var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45394var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 45426var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45506var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45521var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45542var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45557var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45578var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45597var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45612var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45631var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45647var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 45666var lib = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, lib_cs }); 45681var comp2 = CreateNullableCompilation(new[] { source, lib_cs, DisallowNullAttributeDefinition }); 48519var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48551var comp = CreateNullableCompilation(new[] { DisallowNullAttributeDefinition, source }); 48843var comp = CreateCompilation(new[] { AllowNullAttributeDefinition, DisallowNullAttributeDefinition, source }, options: WithNullableEnable()); 51532CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 53910CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 54177CreateNullableCompilation(new[] { source, DisallowNullAttributeDefinition }).VerifyDiagnostics( 70028var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70183var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70223var comp = CreateNullableCompilation(new[] { source, MaybeNullAttributeDefinition, DisallowNullAttributeDefinition }); 70708var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 70755var comp = CreateNullableCompilation(new[] { source, NotNullIfNotNullAttributeDefinition, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 72213", AllowNullAttributeDefinition, DisallowNullAttributeDefinition }); 72830var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82017var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()); 82294CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition }, options: WithNullableEnable()).VerifyDiagnostics( 91968var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 92472var comp = CreateCompilationWithTasksExtensions(new[] { source, s_IAsyncEnumerable, DisallowNullAttributeDefinition }, options: WithNullableEnable(), parseOptions: TestOptions.Regular9); 149652var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 149717var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149765var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149802var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 149847var comp = CreateCompilation(new[] { source, AllowNullAttributeDefinition, DisallowNullAttributeDefinition, MaybeNullAttributeDefinition, NotNullAttributeDefinition }); 154962var comp = CreateCompilation(new[] { sourceA, DisallowNullAttributeDefinition, NotNullAttributeDefinition }); 155087comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 155148comp = CreateCompilation(new[] { sourceB, DisallowNullAttributeDefinition, NotNullAttributeDefinition }, references: new[] { refA }); 159004var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition }); 159064var comp = CreateCompilation(new[] { source, DisallowNullAttributeDefinition });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\RequiredMembersTests.cs (2)
6113var comp = CreateCompilationWithRequiredMembers([code, NotNullAttributeDefinition, DisallowNullAttributeDefinition]); 6191var comp = CreateCompilationWithRequiredMembers([code, NotNullAttributeDefinition, DisallowNullAttributeDefinition]);