forked from tomasr/roslyn-colorizer
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
82 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System; | ||
|
||
namespace Test | ||
{ | ||
internal enum Enum | ||
{ | ||
Value, | ||
Second = 2 | ||
} | ||
|
||
internal struct Data | ||
{ | ||
public int field { get; set; } | ||
private readonly string privately; | ||
|
||
public Data(int p) | ||
{ | ||
field = p; | ||
privately = "Hello"; | ||
} | ||
} | ||
|
||
internal static class ClassExt | ||
{ | ||
public static int Sum(this Enum @enum, int num = 5) | ||
{ | ||
return num + 2; | ||
} | ||
} | ||
internal interface Base | ||
{ | ||
int Run(string arg); | ||
} | ||
|
||
internal class Class1 : Base | ||
{ | ||
private Data data; | ||
Enum Runner { | ||
get => Enum.Value; | ||
} | ||
|
||
public Class1() // construct | ||
{ | ||
var x = Enum.Value; | ||
x.Sum(3); | ||
} | ||
|
||
public static int NoWay() => 42; | ||
|
||
public int Run(string arg) => throw new NotImplementedException(); | ||
} | ||
} |
Oops, something went wrong.