Example #1
0
        public static System.Collections.Generic.IEnumerable <JClassRef> Descendants(this JClassRef ce)
        {
            foreach (var ce2 in ce.Children())
            {
                yield return(ce2);

                foreach (var ce3 in ce2.Descendants())
                {
                    yield return(ce3);
                }
            }
        }
Example #2
0
 public static System.Collections.Generic.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);
     }
 }