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); 98649var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 99337var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8); 100114var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 100233var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options: WithNullable(NullableContextOptions.Warnings)); 101370var comp2 = CreateCompilation(source2, options: WithNullable(NullableContextOptions.Warnings), references: new[] { reference }); 113230CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113296CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113368CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113420CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113475CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113530CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113588CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113646CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113689CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113744CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 113798var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114023var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114246CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114304CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114365CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114423CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114459CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114496CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114532CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114562CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114594CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 114626var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114657var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114687var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114718var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114748var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 114777var comp = CreateCompilation(new[] { source }, options: WithNullable(nullableContextOptions)); 123810comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Warnings)); 123820comp = CreateCompilation(new[] { source }, options: WithNullable(NullableContextOptions.Annotations)); 125124CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 125309CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 125458CSharpCompilationOptions options = WithNullable(nullableContextOptions); 125998CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 126073CSharpCompilationOptions compilationOptions = WithNullable(nullableContextOptions); 126143CSharpCompilationOptions options = WithNullable(nullableContextOptions);