57 references to WithNullable
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (2)
886var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 908var comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations), parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (55)
Semantics\NullableContextTests.cs (1)
63var comp = CreateCompilation(source, options: WithNullable(globalContext));
Semantics\NullableReferenceTypesTests.cs (54)
5954var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Annotations)); 6292var comp = CreateCompilation(source, options: WithNullable(NullableContextOptions.Warnings)); 8589var comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8595comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8601comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8604comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8607comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8610comp = CreateCompilation("", options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 8613comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3); 8616comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8); 8619comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3); 8622comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 8625comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3); 8628comp = CreateCompilation(new string[] { }, options: WithNullable(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8); 98655var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99343var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 100120var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100239var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 101376var comp2 = CreateCompilation(source2, options: WithNullable(NullableContextOptions.Warnings), references: new[] { reference }); 113236CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113302CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113374CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113426CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113481CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113536CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113594CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113652CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113695CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113750CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113804var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114029var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114252CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114310CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114371CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114429CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114465CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114502CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114538CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114568CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114600CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114632var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114663var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114693var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114724var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114754var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114783var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 123816comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Warnings)); 123826comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations)); 125130CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 125315CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 125464CSharpCompilationOptions options = WithNullable(nullableContextOptions); 126004CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 126079CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 126149CSharpCompilationOptions options = WithNullable(nullableContextOptions);