Example #1
0
        public SimplificationData FastRemoveAllRemovables(StopChecker stopChecker)
        {
            var remover  = new SimultaneousAllTypeRemover(Program);
            var simpData = remover.Remove(AllRemovableTypes, stopChecker);

            return(simpData);
        }
Example #2
0
        public SimplificationData FastRemoveAllInMethods(StopChecker stopChecker, List <MemberDecl> members)
        {
            var remover          = new SimultaneousAllTypeRemover(Program);
            var newAllRemovables = new AllRemovableTypes();

            foreach (var member in members)
            {
                if (!AllRemovableTypes.RemovableTypesInMethods.ContainsKey(member))
                {
                    continue;
                }
                newAllRemovables.RemovableTypesInMethods.Add(member, AllRemovableTypes.RemovableTypesInMethods[member]);
            }
            var simpData = remover.Remove(newAllRemovables, stopChecker);

            return(simpData);
        }
Example #3
0
 /// <param name="stopChecker">A StopChecker object to alert Dare to halt termination</param>
 public Dare(StopChecker stopChecker)
 {
     _stopChecker = stopChecker;
 }
Example #4
0
File: Dare.cs Project: ggrov/tacny
 /// <param name="stopChecker">A StopChecker object to alert Dare to halt termination</param>
 public Dare(StopChecker stopChecker)
 {
     _stopChecker = stopChecker;
 }
Example #5
0
File: Dare.cs Project: ggrov/tacny
 public SimplificationData FastRemoveAllInMethods(StopChecker stopChecker, List<MemberDecl> members)
 {
     var remover = new SimultaneousAllTypeRemover(Program);
     var newAllRemovables = new AllRemovableTypes();
     foreach (var member in members) {
         if(!AllRemovableTypes.RemovableTypesInMethods.ContainsKey(member))
             continue;
         newAllRemovables.RemovableTypesInMethods.Add(member, AllRemovableTypes.RemovableTypesInMethods[member]);
     }
     var simpData = remover.Remove(newAllRemovables, stopChecker);
     return simpData;
 }
Example #6
0
File: Dare.cs Project: ggrov/tacny
 public SimplificationData FastRemoveAllRemovables(StopChecker stopChecker)
 {
     var remover = new SimultaneousAllTypeRemover(Program);
     var simpData = remover.Remove(AllRemovableTypes, stopChecker);
     return simpData;
 }