public async Task OneTimeSetup()
        {
            _logger         = new NullLogger();
            _solutionLoader = new SolutionLoader(new WorkspaceCreator(logger: _logger), _logger);
            _solution       = await _solutionLoader.LoadSolution(TestDataLocator.CalculateTestDataSolutionPath());

            _symbolExtractor = new SymbolExtractorWithCompilation(_logger);
        }
Exemplo n.º 2
0
        private static async Task RunAnalysis(ProgramOptions options)
        {
            _logger = new ConsoleLogger(verbose: options.VerboseLogging, debug: options.DebugLogging);
            using (var solLoader = new SolutionLoader(_logger))
            {
                var solution = await solLoader.LoadSolution(options.PathToSolution);

                var extractor       = new SymbolExtractorWithCompilation(_logger);
                var declaredSymbols = await extractor.FindSymbols(solution, options.FullTypeName, options.MethodName, options.MethodArguments);

                _logger.Info($"Did not find anything for {options.FullTypeName}.{options.MethodName}({string.Join(", ", options.MethodArguments)})");
                await ArgumentExtraction(declaredSymbols, solution, options);
            }
        }