File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
StyleCop.Analyzers.Test/ReadabilityRules
StyleCop.Analyzers/ReadabilityRules Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1110,10 +1110,10 @@ void MethodName()
11101110 }
11111111
11121112 using (default(IDisposable))
1113- using (default(IDisposable))
1114- {
1113+ using (default(IDisposable))
1114+ {
11151115 int y = 3 + 2;
1116- }
1116+ }
11171117
11181118 using (default(IDisposable))
11191119 {
@@ -1127,8 +1127,8 @@ void MethodName()
11271127 return;
11281128
11291129 using (default(IDisposable))
1130- using (default(IDisposable))
1131- return;
1130+ using (default(IDisposable))
1131+ return;
11321132 }
11331133}
11341134" ;
Original file line number Diff line number Diff line change @@ -807,7 +807,8 @@ public override void VisitLockStatement(LockStatementSyntax node)
807807 public override void VisitUsingStatement ( UsingStatementSyntax node )
808808 {
809809 // Allow consecutive using statements without nesting indentation.
810- using ( this . AdjustIndentation ( node . Statement . IsKind ( SyntaxKind . UsingStatement ) ? 0 : 1 ) )
810+ int adjustment = node . Parent . IsKind ( SyntaxKind . UsingStatement ) ? 0 : 1 ;
811+ using ( this . AdjustIndentation ( adjustment ) )
811812 {
812813 this . AnalyzeUsingStatement ( node ) ;
813814 base . VisitUsingStatement ( node ) ;
You can’t perform that action at this time.
0 commit comments