57 references to WithNullable
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Nullable.cs (2)
886
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8);
908
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Annotations), parseOptions: TestOptions.Regular8);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (55)
Semantics\NullableContextTests.cs (1)
63
var comp = CreateCompilation(source, options:
WithNullable
(globalContext));
Semantics\NullableReferenceTypesTests.cs (54)
5954
var comp = CreateCompilation(source, options:
WithNullable
(NullableContextOptions.Annotations));
6292
var comp = CreateCompilation(source, options:
WithNullable
(NullableContextOptions.Warnings));
8589
var comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3);
8595
comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3);
8601
comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3);
8604
comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8);
8607
comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
8610
comp = CreateCompilation("", options:
WithNullable
(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8);
8613
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Enable), parseOptions: TestOptions.Regular7_3);
8616
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Enable), parseOptions: TestOptions.Regular8);
8619
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular7_3);
8622
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
8625
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Disable), parseOptions: TestOptions.Regular7_3);
8628
comp = CreateCompilation(new string[] { }, options:
WithNullable
(NullableContextOptions.Disable), parseOptions: TestOptions.Regular8);
98649
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
99337
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
100114
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings));
100233
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings));
101370
var comp2 = CreateCompilation(source2, options:
WithNullable
(NullableContextOptions.Warnings), references: new[] { reference });
113230
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113296
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113368
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113420
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113475
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113530
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113588
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113646
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113689
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113744
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113798
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114023
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114246
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114304
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114365
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114423
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114459
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114496
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114532
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114562
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114594
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114626
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114657
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114687
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114718
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114748
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114777
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
123810
comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Warnings));
123820
comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Annotations));
125124
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
125309
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
125458
CSharpCompilationOptions options =
WithNullable
(nullableContextOptions);
125998
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
126073
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
126143
CSharpCompilationOptions options =
WithNullable
(nullableContextOptions);