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
() })
77315
options:
WithNullableDisable
());
77346
options:
WithNullableDisable
());
77373
options:
WithNullableDisable
());
77379
options:
WithNullableDisable
());
77480
options:
WithNullableDisable
());
77496
options:
WithNullableDisable
());
77508
options:
WithNullableDisable
());
77514
options:
WithNullableDisable
());
99456
var comp4 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp1.ToMetadataReference() });
99459
var comp5 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp1.EmitToImageReference() });
99462
var comp6 = CreateCompilation(new[] { source1 }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
99475
var comp9 = CreateCompilation(new[] { source2 }, options:
WithNullableDisable
(), references: new[] { comp6.ToMetadataReference() });
101285
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
105862
foreach (var options in new[] { WithNullableEnable(),
WithNullableDisable
() })
105904
var comp2 = CreateCompilation(new[] { source }, options:
WithNullableDisable
());
112555
comp0 = CreateCompilation(new[] { source0 }, options:
WithNullableDisable
());
112650
comp0 = CreateCompilation(new[] { source0 }, options:
WithNullableDisable
(), parseOptions: TestOptions.Regular8);
116148
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116185
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116223
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116260
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116297
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116339
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116378
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116419
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116466
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
116507
var comp1 = CreateCompilation(source1, options:
WithNullableDisable
());
125107
var comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
());
125112
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id, option));
125115
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
125290
var comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
());
125295
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id1, id2, option));
125298
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
126080
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithSpecificDiagnosticOptions(id, option));
126083
comp = CreateCompilation(new[] { source, source2 }, options:
WithNullableDisable
().WithGeneralDiagnosticOption(option));
144304
var comp = CreateCompilation(source, options:
WithNullableDisable
());
144327
var comp = CreateCompilation(source, options:
WithNullableDisable
());
144393
var comp = CreateCompilation(new[] { source1, source2 }, options:
WithNullableDisable
());
144415
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) }