예제 #1
0
 private void Setup()
 {
     _configuration    = ProjectData.Configuration.AnalyzeConfiguration;
     _solution         = ProjectData.Project.Solution;
     _analyzeDocuments = ProjectData.Project.Documents.Where(o => _configuration.DocumentSelectionPredicate(o))
                         .ToImmutableHashSet();
     _analyzeProjects = new[] { ProjectData.Project }.ToImmutableHashSet();
 }
        private void Setup()
        {
            _configuration    = ProjectData.Configuration.AnalyzeConfiguration;
            _solution         = ProjectData.Project.Solution;
            _analyzeDocuments = ProjectData.Project.Documents
                                .Where(o => _configuration.DocumentSelectionPredicate(o))
                                .ToImmutableHashSet();
            _analyzeProjects = new[] { ProjectData.Project }
            .ToImmutableHashSet();
            _searchOptions = AsyncCounterpartsSearchOptions.Default;
            var useTokens = _configuration.UseCancellationTokens | _configuration.ScanForMissingAsyncMembers != null;

            if (useTokens)
            {
                _searchOptions |= AsyncCounterpartsSearchOptions.HasCancellationToken;
            }
        }