-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
352 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace RoslynAnalysisSampleConsole | ||
{ | ||
public class ClassMethodInfo | ||
{ | ||
public string ClassName { get; set; } | ||
|
||
public string MethodName { get; set; } | ||
|
||
public List<ClassMethodInfo> Children { get; } | ||
|
||
public int LineCount { get; set; } | ||
|
||
public ClassMethodInfo() : this(null, null, 0) | ||
{ | ||
// オーバーロードコンストラクタの呼び出しのみ | ||
} | ||
|
||
public ClassMethodInfo(string className, string methodName, int lineCount = 0) | ||
{ | ||
ClassName = className; | ||
MethodName = methodName; | ||
LineCount = lineCount; | ||
|
||
Children = new List<ClassMethodInfo>(); | ||
} | ||
|
||
public static bool IsEquals(ClassMethodInfo c1, ClassMethodInfo c2) => | ||
c1.ClassName == c2.ClassName && c1.MethodName == c2.MethodName; | ||
} | ||
} |
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,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace RoslynAnalysisSampleConsole | ||
{ | ||
public class ClassMethodTree | ||
{ | ||
public string ParentMethodName { get; set; } | ||
} | ||
} |
Oops, something went wrong.