public static IEnumerable <JClassRef> DescendantsAndSelf(this JClassRef ce) { yield return(ce); foreach (var ce2 in ce.Descendants()) { yield return(ce2); } }
public static IEnumerable <JClassRef> Descendants(this JClassRef ce) { foreach (var ce2 in ce.Children()) { yield return(ce2); foreach (var ce3 in ce2.Descendants()) { yield return(ce3); } } }
public static IEnumerable <JClassRef> Children(this JClassRef ce) { if (ce.GenericArguments != null) { foreach (var ce2 in ce.GenericArguments) { yield return(ce2); } } if (ce.ArrayItemType != null) { yield return(ce.ArrayItemType); } }