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