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);
            }
        }
Ejemplo n.º 2
0
        private IEnumerable <SharpTreeNode> FetchChildren(CancellationToken ct)
        {
            ScopedWhereUsedAnalyzer <SharpTreeNode> analyzer;

            analyzer = new ScopedWhereUsedAnalyzer <SharpTreeNode>(analyzedMethod, FindReferencesInType);
            foreach (var child in analyzer.PerformAnalysis(ct).OrderBy(n => n.Text))
            {
                yield return(child);
            }
        }
Ejemplo n.º 3
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));
        }
Ejemplo n.º 4
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            if (analyzedMethod == null)
            {
                return(new List <AnalyzerTreeNode>());
            }
            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedMethod, FindReferencesInType);

            return(analyzer.PerformAnalysis(ct).OrderBy(n => n.ToString(Language)));
        }
		protected override IEnumerable<AnalyzerTreeNode> FetchChildren(CancellationToken ct)
		{
			InitializeAnalyzer();

			var analyzer = new ScopedWhereUsedAnalyzer<AnalyzerTreeNode>(analyzedMethod, FindReferencesInType);
			foreach (var child in analyzer.PerformAnalysis(ct).OrderBy(n => n.ToString(Language))) {
				yield return child;
			}

			ReleaseAnalyzer();
		}
Ejemplo n.º 6
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.ToString(Language)))
            {
                yield return(child);
            }

            foundMethods = null;
        }
Ejemplo n.º 7
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            foundMethods = new ConcurrentDictionary <MethodDef, int>();

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

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

            foundMethods = null;
        }
Ejemplo n.º 8
0
        private IEnumerable <SharpTreeNode> FetchChildren(CancellationToken ct)
        {
            foundMethods = new ConcurrentDictionary <MethodDefinition, int>();

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

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

            foundMethods = null;
        }
Ejemplo n.º 9
0
        protected override IEnumerable <AnalyzerTreeNode> FetchChildren(CancellationToken ct)
        {
            var analyzer = new ScopedWhereUsedAnalyzer <AnalyzerTreeNode>(analyzedType, FindReferencesInType);

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