private void LoadTypes(TypeDeclarationCollection types, MergeModuleState state)
 {
     foreach (var type in types)
     {
         LoadType(type, state);
     }
 }
Ejemplo n.º 2
0
 private void CollectTypes(List <SearchItem> items, TypeDeclarationCollection types)
 {
     foreach (var type in types)
     {
         items.Add(new SearchTypeItem(type));
         CollectTypes(items, type.NestedTypes);
     }
 }
Ejemplo n.º 3
0
 private static void Strip(TypeDeclarationCollection types)
 {
     for (int i = types.Count - 1; i >= 0; i--)
     {
         var type = (BuildType)types[i];
         if (type.Strip)
         {
             types.RemoveAt(i);
         }
         else
         {
             Strip(type.Methods);
             Strip(type.Fields);
             Strip(type.Properties);
             Strip(type.Events);
             Strip(type.NestedTypes);
         }
     }
 }
Ejemplo n.º 4
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n, Func<TypeDeclaration, TypeDeclaration, Action<string, string>, bool> checkitem, Action<string, string> errAct)
 {
     return Compare<TypeDeclaration>(source,n,checkitem,errAct);
 }
Ejemplo n.º 5
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n, Func<TypeDeclaration, TypeDeclaration, bool> checkitem)
 {
     return Compare<TypeDeclaration>(source,n,checkitem);
 }
Ejemplo n.º 6
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n)
 {
     return Compare<TypeDeclaration>(source,n);
 }
Ejemplo n.º 7
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n, Func <TypeDeclaration, TypeDeclaration, Action <string, string>, bool> checkitem, Action <string, string> errAct)
 {
     return(Compare <TypeDeclaration>(source, n, checkitem, errAct));
 }
Ejemplo n.º 8
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n, Func <TypeDeclaration, TypeDeclaration, bool> checkitem)
 {
     return(Compare <TypeDeclaration>(source, n, checkitem));
 }
Ejemplo n.º 9
0
 public static bool Compare(this TypeDeclarationCollection source, TypeDeclarationCollection n)
 {
     return(Compare <TypeDeclaration>(source, n));
 }
Ejemplo n.º 10
0
        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;
        }