15 references to WithOptions
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticAnalyzerRunner.cs (1)
74.WithOptions(options)
DiagnosticVerifier.cs (1)
94.WithOptions(options)
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
99.WithOptions(compilation.Options.WithReportSuppressedDiagnostics(analysisOptions.ReportSuppressedDiagnostics))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncTests.cs (3)
64CompileAndVerify(c.WithOptions(options), symbolValidator: module => 73CompileAndVerify(c.WithOptions(options), symbolValidator: module => 82CompileAndVerify(c.WithOptions(options), symbolValidator: module =>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
SourceGeneration\GeneratorDriverTests.cs (5)
1204var updatedCompilation = compilation.WithOptions(options); 1831var newCompilation = compilation.WithOptions(compilation.Options.WithModuleName("newComp")); 1966Compilation newCompilation = compilation.WithOptions(compilation.Options.WithModuleName("newCompilation")); 2081Compilation newCompilation = compilation.WithOptions(compilation.Options.WithModuleName("newCompilation")); 3369compilation = compilation.WithOptions(compilation.Options.WithModuleName("newName"));
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
357compilation = (TCompilation)compilation.WithOptions(options);
Microsoft.CodeAnalysis.Test.Utilities (3)
CompilationVerifier.cs (1)
694.WithOptions(_compilation.Options.WithMetadataImportOptions(importOptions));
Diagnostics\DiagnosticExtensions.cs (2)
237c = (TCompilation)c.WithOptions(c.Options.WithGeneralDiagnosticOption(toggledOption)); 309c = (TCompilation)c.WithOptions(c.Options.WithReportSuppressedDiagnostics(reportSuppressedDiagnostics));