233 references to Options
ConfigurationSchemaGenerator (1)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.Analyzer.Testing (4)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.CodeAnalysis (79)
CommandLine\CommonCompiler.cs (7)
426Debug.Assert(compilation.Options.SourceReferenceResolver is object);
453ResolveEmbeddedFilesFromExternalSourceDirectives(tree, compilation.Options.SourceReferenceResolver, embeddedFileOrderedSet, diagnostics);
946ResolveAnalyzersFromArguments(diagnosticInfos, MessageProvider, compilation.Options, Arguments.SkipAnalyzers, out var analyzers, out var generators);
1002ReportAnalyzerUtil.Report(consoleOutput, analyzerDriver, driverTimingInfo, Culture, compilation.Options.ConcurrentBuild);
1441if (compilation.Options.StrongNameProvider != null && compilation.SignUsingBuilder && !compilation.Options.PublicSign)
1664using (Stream? manifestStream = OpenManifestStream(fileSystem, messageProvider, compilation.Options.OutputKind, arguments, diagnostics))
Compilation\Compilation.cs (22)
218Options,
417return Options.ModuleName ??
418(AssemblyName != null ? AssemblyName + Options.OutputKind.GetDefaultExtension() : UnspecifiedModuleAssemblyName);
1034string scriptClassName = this.Options.ScriptClassName ?? "";
1876bool reportSuppressedDiagnostics = Options.ReportSuppressedDiagnostics;
1885var filtered = Options.FilterDiagnostic(d, cancellationToken);
1925if (this.Options.OutputKind.IsApplication())
1941Win32ResourceConversions.AppendManifestToResourceStream(result, manifestContents, !this.Options.OutputKind.IsApplication());
2123if (Options.OutputKind == OutputKind.NetModule && !(manifestResources != null && manifestResources.Any()))
2157if (Options.OutputKind != OutputKind.NetModule)
2195CompilationOptions compilationOptions = this.Options;
2434&& Options.OutputKind != OutputKind.NetModule
2448&& !Options.PublicSign
2449&& Options.OutputKind != OutputKind.NetModule
2867if (this.Options.OutputKind == OutputKind.NetModule)
2994if (Options.StrongNameProvider != null && SignUsingBuilder && !Options.PublicSign)
3149options.ValidateOptions(diagnostics, MessageProvider, Options.Deterministic);
3156if (Options.OutputKind == OutputKind.NetModule && manifestResources != null)
3195internal bool IsEmitDeterministic => this.Options.Deterministic;
3243emitPeStream = new EmitStream(peStreamProvider, signKind, StrongNameKeys, Options.StrongNameProvider);
3246: new EmitStream(metadataPEStreamProvider, signKind, StrongNameKeys, Options.StrongNameProvider);
DiagnosticAnalyzer\AnalyzerDriver.cs (14)
878var reportSuppressedDiagnostics = compilation.Options.ReportSuppressedDiagnostics;
953if (compilation.Options.SpecificDiagnosticOptions.TryGetValue(descriptor.Id, out var severity) ||
954compilation.Options.SyntaxTreeOptionsProvider?.TryGetGlobalDiagnosticValue(descriptor.Id, cancellationToken, out severity) == true)
964compilation.Options.GeneralDiagnosticOption == ReportDiagnostic.Error)
969if (compilation.Options.SyntaxTreeOptionsProvider is not { } syntaxTreeProvider ||
987compilation.Options.GeneralDiagnosticOption == ReportDiagnostic.Error)
1059executeSuppressionActions(suppressableDiagnostics, concurrent: compilation.Options.ConcurrentBuild);
1207var reportSuppressedDiagnostics = compilation.Options.ReportSuppressedDiagnostics;
1237if (compilation.Options.ReportSuppressedDiagnostics || diagnostics.All(d => !d.IsSuppressed))
1393var configuredSeverity = descriptor.GetEffectiveSeverity(AnalyzerExecutor.Compilation.Options);
1995var filteredDiagnostic = compilation.Options.FilterDiagnostic(diagnostic, cancellationToken);
2035if (!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.Compilation.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken))
2235Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.Compilation.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
2260Debug.Assert(!IsDiagnosticAnalyzerSuppressed(analyzer, analyzerExecutor.Compilation.Options, analyzerManager, analyzerExecutor, analysisScope, severityFilter, cancellationToken));
Microsoft.CodeAnalysis.CodeStyle (23)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (5)
91=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.SemanticModel.Compilation.Options, notification, context.CancellationToken);
94=> ShouldSkipAnalysis(context.Node.SyntaxTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
100=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.SemanticModel.Compilation.Options, notification, context.CancellationToken);
103=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
106=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
101context.Compilation.Options,
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (14)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Microsoft.CodeAnalysis.Features (25)
src\Analyzers\Core\Analyzers\AbstractBuiltInCodeStyleDiagnosticAnalyzer_Core.cs (5)
91=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.SemanticModel.Compilation.Options, notification, context.CancellationToken);
94=> ShouldSkipAnalysis(context.Node.SyntaxTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
100=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.SemanticModel.Compilation.Options, notification, context.CancellationToken);
103=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
106=> ShouldSkipAnalysis(context.FilterTree, context.Options, context.Compilation.Options, notification, context.CancellationToken);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
101context.Compilation.Options,
Microsoft.CodeAnalysis.Rebuild.UnitTests (5)
Microsoft.CodeAnalysis.Scripting.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (16)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (11)
VisualStudioMSBuildWorkspaceTests.cs (10)
492Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
507Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
521Assert.Equal(Platform.AnyCpu32BitPreferred, compilation.Options.Platform);
536Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
551Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
616Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
631Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
645Assert.Equal(Platform.AnyCpu32BitPreferred, compilation.Options.Platform);
660Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
675Assert.Equal(Platform.AnyCpu, compilation.Options.Platform);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
System.Windows.Forms.Analyzers.CSharp (1)