mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-20 05:48:14 +08:00
Use file scoped namespace declarations
This commit is contained in:

committed by
Phil Scott

parent
1dbaf50935
commit
ec1188b837
@ -1,23 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace Spectre.Console.Rendering
|
||||
namespace Spectre.Console.Rendering;
|
||||
|
||||
/// <summary>
|
||||
/// A tree guide made up of lines.
|
||||
/// </summary>
|
||||
public sealed class LineTreeGuide : TreeGuide
|
||||
{
|
||||
/// <summary>
|
||||
/// A tree guide made up of lines.
|
||||
/// </summary>
|
||||
public sealed class LineTreeGuide : TreeGuide
|
||||
/// <inheritdoc/>
|
||||
public override string GetPart(TreeGuidePart part)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public override string GetPart(TreeGuidePart part)
|
||||
return part switch
|
||||
{
|
||||
return part switch
|
||||
{
|
||||
TreeGuidePart.Space => " ",
|
||||
TreeGuidePart.Continue => "│ ",
|
||||
TreeGuidePart.Fork => "├── ",
|
||||
TreeGuidePart.End => "└── ",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(part), part, "Unknown tree part."),
|
||||
};
|
||||
}
|
||||
TreeGuidePart.Space => " ",
|
||||
TreeGuidePart.Continue => "│ ",
|
||||
TreeGuidePart.Fork => "├── ",
|
||||
TreeGuidePart.End => "└── ",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(part), part, "Unknown tree part."),
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user