mirror of
https://github.com/helix-editor/helix
synced 2026-07-26 23:00:55 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
38 lines
361 B
C#
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";
|
|
}
|
|
}
|
|
}
|
|
}
|