Example #1
0
        protected virtual VisitResult Visit(ModuleChange moduleChange, ModuleChangeContext moduleChangeContext)
        {
            var typeChangeContext = new TypeChangeContext(moduleChangeContext.AssemblyChanges, moduleChange);

            return(moduleChange.TypeChanges.All(typeChange => Visit(typeChange, typeChangeContext) == VisitResult.Continue)
                                ? VisitResult.Continue
                                : VisitResult.Stop);
        }
Example #2
0
        public virtual void Visit(AssemblyChanges assemblyChanges)
        {
            var context = new ModuleChangeContext(assemblyChanges);

            foreach (var moduleChange in assemblyChanges.ModuleChanges)
            {
                if (Visit(moduleChange, context) != VisitResult.Continue)
                {
                    return;
                }
            }
        }