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