2 writes to FormattingOptions
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
21
FormattingOptions
= options.GetSyntaxFormattingOptions(languageServices),
36
FormattingOptions
= SyntaxFormattingOptionsProviders.GetDefault(languageServices),
22 references to FormattingOptions
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
65
? await ConvertNamespaceTransform.ConvertFileScopedNamespaceAsync(document, fileScopedNamespace, (CSharpSyntaxFormattingOptions)cleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false)
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (1)
32
var accessibilityPreferences = options.
FormattingOptions
.AccessibilityModifiersRequired;
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
35
var formattingOptions = (CSharpSyntaxFormattingOptions)options.
FormattingOptions
;
Formatting\CSharpUseProgramMainNewDocumentFormattingProvider.cs (2)
29
var option = ((CSharpSyntaxFormattingOptions)options.
FormattingOptions
).PreferTopLevelStatements;
33
return await ConvertProgramTransform.ConvertToProgramMainAsync(document, options.
FormattingOptions
.AccessibilityModifiersRequired, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (10)
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (1)
30
var newLineTrivia = SyntaxGeneratorInternal.EndOfLine(options.
FormattingOptions
.NewLine);
ChangeSignature\AbstractChangeSignatureService.cs (1)
428
var formattedDoc = await Formatter.FormatAsync(reducedDoc, SyntaxAnnotation.ElasticAnnotation, cleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
143
services, cleanupOptions.
FormattingOptions
, addImportsService, cancellationToken);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
625
root = Formatter.Format(root, Formatter.Annotation, services, documentOptions.
FormattingOptions
, cancellationToken);
702
documentWithAdditionalImports, Formatter.Annotation, documentOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
224
document = await Formatter.FormatAsync(document, Formatter.Annotation, cleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
295
cleanupOptions.
FormattingOptions
,
ExtractMethod\MethodExtractor.cs (1)
158
Formatter.Format(simplifiedRoot, Formatter.Annotation, services, this.Options.CodeCleanupOptions.
FormattingOptions
, formattingRules, cancellationToken));
PullMemberUp\MembersPuller.cs (1)
387
destinationDocument = await Formatter.FormatAsync(destinationDocument, s_removableImportAnnotation, options.CleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (1)
110
var formattedDocument = await Formatter.FormatAsync(simplified, newCleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces (7)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
24
var result = formatter.GetFormattingResult(root, spans, options.
FormattingOptions
, rules, cancellationToken);
ExtractMethod\ExtractMethodOptions.cs (1)
38
public LineFormattingOptions LineFormattingOptions => CodeCleanupOptions.
FormattingOptions
.LineFormatting;
Rename\ConflictEngine\RenamedSpansTracker.cs (1)
167
document = await Formatter.FormatAsync(document, Formatter.Annotation, cleanupOptions.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeCleanup\CodeCleanupOptions.cs (2)
24
SeparateImportDirectiveGroups =
FormattingOptions
.SeparateImportDirectiveGroups,
26
NewLine =
FormattingOptions
.LineFormatting.NewLine,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (2)
21
var document1 = await syntaxFormatting.FormatAsync(document, Formatter.Annotation, options.
FormattingOptions
, cancellationToken).ConfigureAwait(false);
24
var document2 = await syntaxFormatting.FormatAsync(document1, SyntaxAnnotation.ElasticAnnotation, options.
FormattingOptions
, cancellationToken).ConfigureAwait(false);