public static ICollection GetNestedTypes(ITypeDeclaration value, IVisibilityConfiguration visibility)
        {
            ITypeDeclarationCollection nestedTypes = value.NestedTypes;
            ICollection result;

            if (nestedTypes.Count > 0)
            {
                ArrayList arrayList = new ArrayList(0);
                foreach (object obj in nestedTypes)
                {
                    ITypeDeclaration value2 = (ITypeDeclaration)obj;
                    if (IsVisible(value2, visibility))
                    {
                        arrayList.Add(value2);
                    }
                }
                arrayList.Sort();
                result = arrayList;
            }
            else
            {
                result = new ITypeDeclaration[0];
            }
            return(result);
        }
 public virtual void VisitTypeDeclarationCollection(ITypeDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         VisitTypeDeclaration(value[i]);
     }
 }
Esempio n. 3
0
        public static ICollection GetNestedTypes(ITypeDeclaration value, IVisibilityConfiguration visibility)
        {
            ArrayList list = new ArrayList(0);
            ITypeDeclarationCollection nestedTypes = value.NestedTypes;

            if (nestedTypes.Count > 0)
            {
                foreach (ITypeDeclaration declaration in nestedTypes)
                {
                    if (IsVisible(declaration, visibility))
                    {
                        list.Add(declaration);
                    }
                }
                list.Sort();
            }
            return(list);
        }
        private static ICollection GetNestedTypeList(ITypeDeclaration value)
        {
            ITypeDeclarationCollection nestedTypes = value.NestedTypes;

            if (nestedTypes.Count != 0)
            {
                ArrayList list = new ArrayList();

                list.Add(value);

                foreach (ITypeDeclaration nestedType in nestedTypes)
                {
                    list.AddRange(GetNestedTypeList(nestedType));
                }

                return(list);
            }

            return(new object[] { value });
        }
        public static ICollection GetNestedTypes(ITypeDeclaration value, IVisibilityConfiguration visibility)
        {
            ITypeDeclarationCollection nestedTypes = value.NestedTypes;

            if (nestedTypes.Count > 0)
            {
                ArrayList list = new ArrayList(0);

                foreach (ITypeDeclaration nestedType in nestedTypes)
                {
                    if (Helper.IsVisible(nestedType, visibility))
                    {
                        list.Add(nestedType);
                    }
                }

                list.Sort();
                return(list);
            }

            return(new ITypeDeclaration[0]);
        }
Esempio n. 6
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n, Func<ITypeDeclaration, ITypeDeclaration, Action<string, string>, bool> checkitem, Action<string, string> errAct)
 {
     return Compare<ITypeDeclaration>(source,n,checkitem,errAct);
 }
Esempio n. 7
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n, Func<ITypeDeclaration, ITypeDeclaration, bool> checkitem)
 {
     return Compare<ITypeDeclaration>(source,n,checkitem);
 }
Esempio n. 8
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n)
 {
     return Compare<ITypeDeclaration>(source,n);
 }
Esempio n. 9
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n, Func <ITypeDeclaration, ITypeDeclaration, Action <string, string>, bool> checkitem, Action <string, string> errAct)
 {
     return(Compare <ITypeDeclaration>(source, n, checkitem, errAct));
 }
Esempio n. 10
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n, Func <ITypeDeclaration, ITypeDeclaration, bool> checkitem)
 {
     return(Compare <ITypeDeclaration>(source, n, checkitem));
 }
Esempio n. 11
0
 public static bool Compare(this ITypeDeclarationCollection source, ITypeDeclarationCollection n)
 {
     return(Compare <ITypeDeclaration>(source, n));
 }
Esempio n. 12
0
 public virtual void VisitTypeDeclarationCollection(ITypeDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         this.VisitTypeDeclaration(value[i]);
     }
 }
 /*
 private void InsituTransformResourceCollection(IResourceCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         value[i] = this.TransformResource(value[i]);
     }
 }
 */
 /*
 private void InsituTypeCollection(ITypeCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         value[i] = this.TransformType(value[i]);
     }
 }
 */
 private void InsituTransformTypeDeclarationCollection(ITypeDeclarationCollection value)
 {
     for (int i = 0; i < value.Count; i++)
     {
         value[i] = this.TransformTypeDeclaration(value[i]);
     }
 }
        public virtual ITypeDeclarationCollection TransformTypeDeclarationCollection(ITypeDeclarationCollection value)
        {
            ITypeDeclaration[] array = new ITypeDeclaration[value.Count];
            for (int i = 0; i < value.Count; i++)
            {
                array[i] = this.TransformTypeDeclaration(value[i]);
            }

            ITypeDeclarationCollection target = new TypeDeclarationCollection();
            target.AddRange(array);
            return target;
        }