static Pipeline GetPipeline(Options options) { Pipeline p = new Pipeline(); if (options.Merge) p.AppendStep(new MergeAssembliesStep()); p.AppendStep(new RenameStep(GetRenamignOptions(options), GetReflectionOptions(options))); p.AppendStep(new OutputStep()); return p; }
public RenameStep(RenamingOptions renamingOptions, ReflectionOptions reflectionOptions) { _renamingOptions = renamingOptions; _reflectionOptions = reflectionOptions; bool keepNamespaces = _renamingOptions.HasFlag(RenamingOptions.KeepNamespaces); INameGenerator nameGenerator = GetNameGenerator(new StringGenerator(ALPHABET), keepNamespaces); _pipeline = new Pipeline(); _pipeline.AppendStep(new FillMethodImplTablesStep()); _pipeline.AppendStep(new BuildRenameMapStep(nameGenerator)); if (_renamingOptions.HasFlag(RenamingOptions.Reflection)) _pipeline.AppendStep(new InjectReflectionMethodProxies(_reflectionOptions, keepNamespaces)); if (_renamingOptions.HasFlag(RenamingOptions.SaveRenameMap)) _pipeline.AppendStep(new SaveRenameMap()); _pipeline.AppendStep(new RenameReferencesStep(_renamingOptions)); _pipeline.AppendStep(new RenameDefinitionsStep(_renamingOptions)); }