Exemple #1
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedMethod, FindReferencesInType);

            foreach (var child in analyzer.PerformAnalysis(ct).OrderBy(n => n.Text))
            {
                yield return(child);
            }
        }
Exemple #2
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedType, FindTypeUsage);

            return(analyzer.PerformAnalysis(ct)
                   .Cast <AnalyzerEntityTreeNode>()
                   .Where(n => n.Member.DeclaringType != analyzedType)
                   .Distinct(new AnalyzerEntityTreeNodeComparer())
                   .OrderBy(n => n.Text));
        }
Exemple #3
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            foundMethods = new Lazy <Hashtable>(LazyThreadSafetyMode.ExecutionAndPublication);

            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedField, FindReferencesInType);

            foreach (var child in analyzer.PerformAnalysis(ct).OrderBy(n => n.Text))
            {
                yield return(child);
            }

            foundMethods = null;
        }
Exemple #4
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            foundMethods = new ConcurrentDictionary <MethodDefinition, int>();

            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedMethod, FindReferencesInType);

            foreach (var child in analyzer.PerformAnalysis(ct).OrderBy(n => n.Text))
            {
                yield return(child);
            }

            foundMethods = null;
        }
Exemple #5
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedEvent, FindReferencesInType);

            return(analyzer.PerformAnalysis(ct).OrderBy(n => n.Text));
        }