Permalink
Browse files

Handle recursive array types in Add SS ref gen

  • Loading branch information...
mythz committed Feb 6, 2019
1 parent ac0e2d5 commit 5f1f73bdccd1702d44c8fc195fe3c45f78ba560f
@@ -169,8 +169,11 @@ void registerTypeFn(Type t)
return;
}

considered.Add(t);
queue.Enqueue(t);
if (!considered.Contains(t))
{
considered.Add(t);
queue.Enqueue(t);
}

if ((!(t.IsSystemType() && !t.IsTuple()) && (t.IsClass || t.IsEnum || t.IsInterface) && !t.IsGenericParameter) || exportTypes.ContainsMatch(t))
{
@@ -8,5 +8,7 @@ public class NativeTypeIssuesService : Service
public object Any(Issue221Long request) => request;

public object Any(TestAttributeExport request) => request;

public object Any(RecursiveNode request) => request;
}
}
@@ -29,4 +29,11 @@ public class TestAttributeExport : IReturn<TestAttributeExport>
[Display(AutoGenerateField = true, AutoGenerateFilter = true, ShortName = "UnitMeasKey")]
public int UnitMeasKey { get; set; }
}

public class RecursiveNode : IReturn<RecursiveNode>
{
public int Id { get; set; }
public string Text { get; set; }
public RecursiveNode[] Children { get; set; }
}
}

0 comments on commit 5f1f73b

Please sign in to comment.