예제 #1
0
        static void Main(string[] args)
        {
            var rootDirectory = args[0];

            if (!Directory.Exists(rootDirectory))
            {
                return;
            }

            var importExtractor            = new CSharpImportExtractor();
            var dependencyExtractor        = new CSharpDependencyExtractor();
            var methodExtractor            = new CSharpMethodExtractor(new CSharpMethodDeclarationIdentifier());
            var removedCommentEmitStrategy = new RemovedCommentEmitStrategy();
            var replacer = new SourceReplacer(dependencyExtractor, methodExtractor, removedCommentEmitStrategy, importExtractor);

            var projectProcessor = new ProjectProcessor(replacer);

            projectProcessor.Process(rootDirectory);
        }
예제 #2
0
 public ProjectProcessor(SourceReplacer replacer)
 {
     Replacer = replacer;
 }