public static IEnumerable <Info> GetParameters(MethodTipInfo info, int index) { for (var i = 0; i < info.GetParameterCount(index); i++) { var t = info.GetParameterInfo(index, i); yield return(new Info { Name = t.Field0, Type = t.Field1, Description = t.Field2 }); } }
public static IEnumerable <MethodInfo> GetMethods(MethodTipInfo info) { for (var i = 0; i < info.GetCount(); i++) { var name = info.GetName(i); var type = info.GetType(i); var description = info.GetDescription(i); var param = GetParameters(info, i); yield return(new MethodInfo { Name = name, Type = type, Description = description, Parameters = param.ToArray() }); } }
public NemerleMethods(MethodTipInfo info) { _info = info; }
public NemerleMethods(MethodTipInfo info) { _info = info; }