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);
98655
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
99343
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings), parseOptions: TestOptions.Regular8);
100120
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings));
100239
var comp3 = CreateCompilation(new[] { source2 }, references: new[] { comp2.ToMetadataReference() }, options:
WithNullable
(NullableContextOptions.Warnings));
101376
var comp2 = CreateCompilation(source2, options:
WithNullable
(NullableContextOptions.Warnings), references: new[] { reference });
113236
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113302
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113374
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113426
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113481
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113536
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113594
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113652
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113695
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113750
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
113804
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114029
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114252
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114310
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114371
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114429
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114465
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114502
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114538
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114568
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114600
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
114632
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114663
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114693
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114724
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114754
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
114783
var comp = CreateCompilation(new[] { source }, options:
WithNullable
(nullableContextOptions));
123816
comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Warnings));
123826
comp = CreateCompilation(new[] { source }, options:
WithNullable
(NullableContextOptions.Annotations));
125130
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
125315
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
125464
CSharpCompilationOptions options =
WithNullable
(nullableContextOptions);
126004
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
126079
CSharpCompilationOptions compilationOptions =
WithNullable
(nullableContextOptions);
126149
CSharpCompilationOptions options =
WithNullable
(nullableContextOptions);