69 references to WithNullableDisable
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_NullableContext.cs (1)
91
comp = CreateCompilation(new[] { source1, source2 }, options:
WithNullableDisable
());
Attributes\AttributeTests_NullablePublicOnly.cs (7)
179
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
199
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
216
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
270
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
290
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
309
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
329
var options =
WithNullableDisable
().WithMetadataImportOptions(MetadataImportOptions.All);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\NullableReferenceTypesTests.cs (47)
5536
var comp = CreateCompilation(source, options:
WithNullableDisable
());
5972
var comp = CreateCompilation(source, options:
WithNullableDisable
());
6316
var comp = CreateCompilation(source, options:
WithNullableDisable
());
8461
var c3 = CreateCompilation(new[] { source }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
8582
var comp = CreateCompilation("", options:
WithNullableDisable
(), parseOptions: TestOptions.Regular7);
9277
var comp2D = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { ref0, ref1 });
14383
foreach (var options1 in new[] { WithNullableEnable(),
WithNullableDisable
() })
14390
foreach (var options2 in new[] { WithNullableEnable(),
WithNullableDisable
() })
77321
options:
WithNullableDisable
());
77352
options:
WithNullableDisable
());
77379
options:
WithNullableDisable
());
77385
options:
WithNullableDisable
());
77486
options:
WithNullableDisable
());
77502
options:
WithNullableDisable
());
77514
options:
WithNullableDisable
());
77520
options:
WithNullableDisable
());
99462
var comp4 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp1.ToMetadataReference() });
99465
var comp5 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp1.EmitToImageReference() });
99468
var comp6 = CreateCompilation(new[] { source1 }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
99481
var comp9 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp6.ToMetadataReference() });
101291
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
105868
foreach (var options in new[] { WithNullableEnable(),
WithNullableDisable
() })
105910
var comp2 = CreateCompilation(new[] { source }, options:
WithNullableDisable
());
112561
comp0 = CreateCompilation(new[] { source0 }, options:
WithNullableDisable
());
112656
comp0 = CreateCompilation(new[] { source0 }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
116154
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116191
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116229
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116266
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116303
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116345
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116384
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116425
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116472
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116513
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
125113
var comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
());
125118
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id, option));
125121
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
125296
var comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
());
125301
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id1, id2, option));
125304
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
126086
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id, option));
126089
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
144310
var comp = CreateCompilation(source, options:
WithNullableDisable
());
144333
var comp = CreateCompilation(source, options:
WithNullableDisable
());
144399
var comp = CreateCompilation(new[] { source1, source2 }, options:
WithNullableDisable
());
144421
var comp = CreateCompilation(source, options:
WithNullableDisable
());
Semantics\UninitializedNonNullableFieldTests.cs (1)
1446
comp = CreateCompilation(new[] { source }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\Source\NullablePublicAPITests.cs (11)
434
var comp2 = CreateCompilation(source, options:
WithNullableDisable
());
469
var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options:
WithNullableDisable
());
1039
var comp2 = CreateCompilation(source, options:
WithNullableDisable
());
1055
var comp5 = CreateCompilation("", references: new[] { comp2Emit }, options:
WithNullableDisable
());
4507
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4539
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4572
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4600
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4633
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4664
var comp = CreateCompilation(source, options:
WithNullableDisable
());
4695
var comp = CreateCompilation(source, options:
WithNullableDisable
());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
2594
new object[] {
WithNullableDisable
(TestOptions.DebugDll) }
2606
new object[] {
WithNullableDisable
(TestOptions.ReleaseDll) }