Skip to content

Commit 52e97be

Browse files
committed
Use file-scoped namespace.
1 parent aea32df commit 52e97be

File tree

4 files changed

+402
-413
lines changed

4 files changed

+402
-413
lines changed

src/BenchmarkDotNet/Diagnosers/InProcessDiagnoserRouter.cs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@
33
using JetBrains.Annotations;
44
using System.ComponentModel;
55

6-
namespace BenchmarkDotNet.Diagnosers
6+
namespace BenchmarkDotNet.Diagnosers;
7+
8+
[UsedImplicitly]
9+
[EditorBrowsable(EditorBrowsableState.Never)]
10+
public struct InProcessDiagnoserRouter
711
{
8-
[UsedImplicitly]
9-
[EditorBrowsable(EditorBrowsableState.Never)]
10-
public struct InProcessDiagnoserRouter
11-
{
12-
public IInProcessDiagnoserHandler handler;
13-
public int index;
14-
public RunMode runMode;
12+
public IInProcessDiagnoserHandler handler;
13+
public int index;
14+
public RunMode runMode;
1515

16-
public readonly string ToSourceCode()
17-
=> $$"""
18-
new {{typeof(InProcessDiagnoserRouter).GetCorrectCSharpTypeName()}}() {
19-
{{nameof(handler)}} = {{handler.ToSourceCode()}},
20-
{{nameof(index)}} = {{index}},
21-
{{nameof(runMode)}} = {{SourceCodeHelper.ToSourceCode(runMode)}}
22-
}
23-
""";
24-
}
16+
public readonly string ToSourceCode()
17+
=> $$"""
18+
new {{typeof(InProcessDiagnoserRouter).GetCorrectCSharpTypeName()}}() {
19+
{{nameof(handler)}} = {{handler.ToSourceCode()}},
20+
{{nameof(index)}} = {{index}},
21+
{{nameof(runMode)}} = {{SourceCodeHelper.ToSourceCode(runMode)}}
22+
}
23+
""";
2524
}

0 commit comments

Comments
 (0)