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