This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed
src/Microsoft.DotNet.CodeFormatting Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 1- // Copyright (c) Microsoft. All rights reserved.
2- // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3-
1+ using Microsoft . CodeAnalysis ;
2+ using Microsoft . CodeAnalysis . CSharp ;
43using System ;
54using System . Collections . Generic ;
65using System . Linq ;
7- using System . Threading ;
6+ using System . Text ;
87using System . Threading . Tasks ;
98
10- using Microsoft . CodeAnalysis ;
11- using Microsoft . CodeAnalysis . CSharp ;
12- using Microsoft . CodeAnalysis . CSharp . Syntax ;
13-
14- namespace Microsoft . DotNet . CodeFormatting . Rules
9+ namespace Microsoft . DotNet . CodeFormatting
1510{
16- public static class RuleExtensions
11+ internal static class Extensions
1712 {
1813 public static IEnumerable < SyntaxTrivia > AddTwoNewLines ( this IEnumerable < SyntaxTrivia > trivia )
1914 {
Original file line number Diff line number Diff line change 7171 <Reference Include =" System.Xml" />
7272 </ItemGroup >
7373 <ItemGroup >
74+ <Compile Include =" Extensions.cs" />
7475 <Compile Include =" Filters\FilenameFilter.cs" />
7576 <Compile Include =" Filters\UsableFileFilter.cs" />
7677 <Compile Include =" FormattingEngine.cs" />
9394 <Compile Include =" Rules\HasNoCustomCopyrightHeaderFormattingRule.cs" />
9495 <Compile Include =" Rules\PrivateFieldNamingRule.cs" />
9596 <Compile Include =" Rules\HasUsingsOutsideOfNamespaceFormattingRule.cs" />
96- <Compile Include =" Rules\IsFormattedFormattingRule .cs" />
97+ <Compile Include =" Rules\FormatDocumentFormattingRule .cs" />
9798 <Compile Include =" Rules\IsSimplifiedFormattingRule.cs" />
9899 <Compile Include =" Rules\NonAsciiCharactersAreEscapedInLiteralsRule.cs" />
99100 <Compile Include =" Rules\ExplicitThisRule.cs" />
100- <Compile Include =" Rules\RuleExtensions.cs" />
101101 <Compile Include =" Rules\RuleOrder.cs" />
102102 <Compile Include =" Rules\UsesXunitForTestsFormattingRule.cs" />
103103 <Compile Include =" RuleTypeConstants.cs" />
Original file line number Diff line number Diff line change 1616namespace Microsoft . DotNet . CodeFormatting . Rules
1717{
1818 [ LocalSemanticRuleOrder ( LocalSemanticRuleOrder . IsFormattedFormattingRule ) ]
19- internal sealed class IsFormattedFormattingRule : ILocalSemanticFormattingRule
19+ internal sealed class FormatDocumentFormattingRule : ILocalSemanticFormattingRule
2020 {
2121 private readonly Options _options ;
2222
2323 [ ImportingConstructor ]
24- internal IsFormattedFormattingRule ( Options options )
24+ internal FormatDocumentFormattingRule ( Options options )
2525 {
2626 _options = options ;
2727 }
You can’t perform that action at this time.
0 commit comments