53 references to RunNullableAnalysis
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
333
return Feature(CodeAnalysis.Feature.
RunNullableAnalysis
) switch
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\ForeachTest.cs (1)
1683
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Semantics\PrimaryConstructorTests.cs (3)
3266
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
6968
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature(Feature.
RunNullableAnalysis
, "never"), targetFramework: TargetFramework.NetCoreApp);
6994
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature(Feature.
RunNullableAnalysis
, "never"), targetFramework: TargetFramework.NetCoreApp);
Semantics\RecordTests.cs (2)
30563
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"), targetFramework: TargetFramework.NetCoreApp);
30587
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"), targetFramework: TargetFramework.NetCoreApp);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\LocalFunctionTests.cs (3)
2361
var comp = CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12.WithFeature(Feature.
RunNullableAnalysis
, "never"));
2435
CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular13.WithFeature(Feature.
RunNullableAnalysis
, "never")).VerifyDiagnostics(expectedDiagnostics);
2436
CreateCompilation(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.RegularPreview.WithFeature(Feature.
RunNullableAnalysis
, "never")).VerifyDiagnostics(expectedDiagnostics);
Semantics\NullableContextTests.cs (23)
185
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedAnalyzedKeysDefault);
186
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedAnalyzedKeysAll);
187
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"));
188
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "ALWAYS"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored
189
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "NEVER"), expectedAnalyzedKeysDefault); // unrecognized value (incorrect case) ignored
190
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "true"), expectedAnalyzedKeysDefault); // unrecognized value ignored
191
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "false"), expectedAnalyzedKeysDefault); // unrecognized value ignored
192
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "unknown"), expectedAnalyzedKeysDefault); // unrecognized value ignored
239
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedAnalyzedKeysDefault);
240
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedAnalyzedKeysAll);
241
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"));
298
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedAnalyzedKeysDefault);
299
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedAnalyzedKeysAll);
300
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"));
340
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedFlowState: true, expectedAnalyzedKeysAll);
341
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedFlowState: true, expectedAnalyzedKeysAll);
342
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"), expectedFlowState: false);
379
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedFlowState: true, expectedAnalyzedKeysAll);
380
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedFlowState: true, expectedAnalyzedKeysAll);
381
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"), expectedFlowState: false);
414
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, null), expectedFlowState: true, expectedAnalyzedKeysAll);
415
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "always"), expectedFlowState: true, expectedAnalyzedKeysAll);
416
verify(parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"), expectedFlowState: false);
Semantics\NullableReferenceTypesTests.cs (8)
5246
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: TestOptions.DebugDll);
5292
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Disable));
5338
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: TestOptions.DebugDll.WithNullableContextOptions(NullableContextOptions.Enable));
10615
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: WithNullableEnable());
10774
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: WithNullableEnable());
10937
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: WithNullableEnable());
11127
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: WithNullableEnable());
71881
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(CodeAnalysis.Feature.
RunNullableAnalysis
, "always"), options: WithNullableEnable());
Semantics\RefFieldTests.cs (7)
13499
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
13563
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
13639
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
13710
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
15192
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
28007
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
28067
comp = CreateCompilation(source, parseOptions: TestOptions.RegularDefault.WithFeature(Feature.
RunNullableAnalysis
, "never"));
Semantics\UsingStatementTests.cs (1)
1848
var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular.WithFeature(Feature.
RunNullableAnalysis
, "never"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Source\NullablePublicAPITests.cs (4)
1737
var featureFlagOff = TestOptions.Regular8.WithFeature(Feature.
RunNullableAnalysis
, "never");
2623
var comp = CreateCompilation(source, parseOptions: TestOptions.Regular8.WithFeature(Feature.
RunNullableAnalysis
, flagState));
5181
var comp = CreateCompilation(source, parseOptions: runNullableAnalysisAlways ? TestOptions.RegularPreview.WithFeature(Feature.
RunNullableAnalysis
, "always") : TestOptions.RegularPreview);
5219
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview.WithFeature(Feature.
RunNullableAnalysis
, "never"));