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 ;
4
3
using System ;
5
4
using System . Collections . Generic ;
6
5
using System . Linq ;
7
- using System . Threading ;
6
+ using System . Text ;
8
7
using System . Threading . Tasks ;
9
8
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
15
10
{
16
- public static class RuleExtensions
11
+ internal static class Extensions
17
12
{
18
13
public static IEnumerable < SyntaxTrivia > AddTwoNewLines ( this IEnumerable < SyntaxTrivia > trivia )
19
14
{
Original file line number Diff line number Diff line change 71
71
<Reference Include =" System.Xml" />
72
72
</ItemGroup >
73
73
<ItemGroup >
74
+ <Compile Include =" Extensions.cs" />
74
75
<Compile Include =" Filters\FilenameFilter.cs" />
75
76
<Compile Include =" Filters\UsableFileFilter.cs" />
76
77
<Compile Include =" FormattingEngine.cs" />
93
94
<Compile Include =" Rules\HasNoCustomCopyrightHeaderFormattingRule.cs" />
94
95
<Compile Include =" Rules\PrivateFieldNamingRule.cs" />
95
96
<Compile Include =" Rules\HasUsingsOutsideOfNamespaceFormattingRule.cs" />
96
- <Compile Include =" Rules\IsFormattedFormattingRule .cs" />
97
+ <Compile Include =" Rules\FormatDocumentFormattingRule .cs" />
97
98
<Compile Include =" Rules\IsSimplifiedFormattingRule.cs" />
98
99
<Compile Include =" Rules\NonAsciiCharactersAreEscapedInLiteralsRule.cs" />
99
100
<Compile Include =" Rules\ExplicitThisRule.cs" />
100
- <Compile Include =" Rules\RuleExtensions.cs" />
101
101
<Compile Include =" Rules\RuleOrder.cs" />
102
102
<Compile Include =" Rules\UsesXunitForTestsFormattingRule.cs" />
103
103
<Compile Include =" RuleTypeConstants.cs" />
Original file line number Diff line number Diff line change 16
16
namespace Microsoft . DotNet . CodeFormatting . Rules
17
17
{
18
18
[ LocalSemanticRuleOrder ( LocalSemanticRuleOrder . IsFormattedFormattingRule ) ]
19
- internal sealed class IsFormattedFormattingRule : ILocalSemanticFormattingRule
19
+ internal sealed class FormatDocumentFormattingRule : ILocalSemanticFormattingRule
20
20
{
21
21
private readonly Options _options ;
22
22
23
23
[ ImportingConstructor ]
24
- internal IsFormattedFormattingRule ( Options options )
24
+ internal FormatDocumentFormattingRule ( Options options )
25
25
{
26
26
_options = options ;
27
27
}
You can’t perform that action at this time.
0 commit comments