Skip to content

Commit

Permalink
いろいろ変更(変更しすぎて何やったか分からんw)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabamotch committed Mar 9, 2019
1 parent ffe1ed5 commit afa345e
Show file tree
Hide file tree
Showing 7 changed files with 352 additions and 119 deletions.
29 changes: 29 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="RoslynAnalysisSampleConsole.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
Expand Down Expand Up @@ -75,4 +80,28 @@
</dependentAssembly>
</assemblyBinding>
</runtime>
<applicationSettings>
<RoslynAnalysisSampleConsole.Properties.Settings>
<setting name="ExceptNamespacesStartsWith" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>System.</string>
<string>&lt;global namespace</string>
<string>Microsoft.</string>
</ArrayOfString>
</value>
</setting>
<setting name="AutoGeneratedFiles" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>.g.cs</string>
<string>.generated.cs</string>
<string>.g.i.cs</string>
</ArrayOfString>
</value>
</setting>
</RoslynAnalysisSampleConsole.Properties.Settings>
</applicationSettings>
</configuration>
32 changes: 32 additions & 0 deletions ClassMethodInfo.cs
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;
}
}
13 changes: 13 additions & 0 deletions ClassMethodTree.cs
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; }
}
}
Loading

0 comments on commit afa345e

Please sign in to comment.