1
0
mirror of https://github.com/helix-editor/helix synced 2026-07-26 23:00:55 +02:00
Files
helix/tests/indent/c-sharp.cs
Blaž Hrastnik cd6a852c9e Add indent corpus
This will be used by the cargo indent-check xtask to validate queries,
similar to the existing indent tests in helix-core.
2026-06-07 21:29:01 +09:00

38 lines
361 B
C#

namespace App
{
public enum Color
{
Red,
Green,
}
public class Counter
{
private int count;
public int Bump()
{
if (count > 0)
{
count += 1;
}
else
{
count = 0;
}
return count;
}
public string Classify(int x)
{
switch (x)
{
case 1:
return "one";
default:
return "many";
}
}
}
}