private async Task <IEnumerable <ISymbol> > AnalyzeSolution(Solution solution, string fullTypeName, string methodName, string[] methodParameterTypes)
        {
            var projects = solution.Projects;

            _logger.Verbose("Starting hunt for symbol");

            var symbols = new List <ISymbol>();

            foreach (var project in projects)
            {
                var result = await SearchSymbols(project, fullTypeName, methodName, methodParameterTypes);

                if (result.Any())
                {
                    _logger.Verbose("Found something");
                    symbols.AddRange(result);
                }
                else
                {
                    _logger.Verbose("Found nothing");
                }
            }

            return(symbols);
        }
Exemplo n.º 2
0
 private void WriteErrorMessage(object sender, WorkspaceDiagnosticEventArgs workspaceDiagnosticEventArgs)
 {
     _logger.Verbose(workspaceDiagnosticEventArgs.Diagnostic.Message);
 }