2 instantiations of DocumentOptionSet
Microsoft.CodeAnalysis.Workspaces (2)
Options\DocumentOptionSet.cs (1)
94=> new DocumentOptionSet(_configOptions, _underlyingOptions, Language, _values.SetItem(optionKey, internalValue));
Workspace\Solution\Document.cs (1)
605return new DocumentOptionSet(options, arg.solutionOptions, arg.self.Project.Language);
9 references to DocumentOptionSet
dotnet-format (2)
Analyzers\Extensions.cs (1)
53var options = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
Formatters\DocumentFormatter.cs (1)
88var optionSet = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Usage\CSharpMissingShebangInFileBasedProgram.Fixer.cs (1)
30var options = await context.Document.GetOptionsAsync(ct).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (6)
Formatting\Formatter.cs (1)
368var optionSet = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false);
Options\DocumentOptionSet.cs (3)
97/// Creates a new <see cref="DocumentOptionSet" /> that contains the changed value. 99public DocumentOptionSet WithChangedOption<T>(PerLanguageOption<T> option, T value) 100=> (DocumentOptionSet)WithChangedOption(option, Language, value);
Workspace\Solution\Document.cs (2)
579private AsyncLazy<DocumentOptionSet>? _cachedOptions; 589public Task<DocumentOptionSet> GetOptionsAsync(CancellationToken cancellationToken = default)