rj-action-library-godot-dev.../Scripts/Doc-Generator/ClassDocInfo.cs

58 lines
1.3 KiB
C#

using System.Collections.Generic;
namespace Rokojori.DocGenerator
{
public class ParameterType
{
public string name;
public string type;
public string csNameSpace;
public List<string> generics;
}
public class MemberInfo
{
public string doc;
public string memberType;
public string name;
public string dataType;
public string csNameSpace;
public List<string> modifiers = new List<string>();
public List<string> generics;
public List<ParameterType> parameters = new List<ParameterType>();
public static readonly string Field = "Field";
public static readonly string Method = "Method";
public static MemberInfo Create( string memberType )
{
var m = new MemberInfo();
m.memberType = memberType;
return m;
}
public static MemberInfo CreateField()
{
return MemberInfo.Create( MemberInfo.Field );
}
public static MemberInfo CreateMethod()
{
return MemberInfo.Create( MemberInfo.Method );
}
}
public class ClassDocInfo
{
public string csNameSpace = "";
public string name ="";
public string doc;
public string icon;
public List<string> generics = new List<string>();
public List<string> extendingClasses = new List<string>();
public List<MemberInfo> memberInfos = new List<MemberInfo>();
}
}