|
|
@ -20,8 +20,8 @@ using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading; |
|
|
|
using ICSharpCode.Decompiler.TypeSystem; |
|
|
|
using ICSharpCode.Decompiler.TypeSystem; |
|
|
|
|
|
|
|
using ICSharpCode.ILSpy.Analyzers.TreeNodes; |
|
|
|
using ICSharpCode.ILSpy.TreeNodes; |
|
|
|
using ICSharpCode.ILSpy.TreeNodes; |
|
|
|
using ICSharpCode.ILSpy.TreeNodes.Analyzer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.ILSpy.Analyzers |
|
|
|
namespace ICSharpCode.ILSpy.Analyzers |
|
|
|
{ |
|
|
|
{ |
|
|
@ -46,7 +46,7 @@ namespace ICSharpCode.ILSpy.Analyzers |
|
|
|
{ |
|
|
|
{ |
|
|
|
threading.LoadChildren(this, FetchChildren); |
|
|
|
threading.LoadChildren(this, FetchChildren); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected IEnumerable<AnalyzerTreeNode> FetchChildren(CancellationToken ct) |
|
|
|
protected IEnumerable<AnalyzerTreeNode> FetchChildren(CancellationToken ct) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (analyzer is IEntityAnalyzer<T> entityAnalyzer) { |
|
|
|
if (analyzer is IEntityAnalyzer<T> entityAnalyzer) { |
|
|
@ -81,14 +81,14 @@ namespace ICSharpCode.ILSpy.Analyzers |
|
|
|
return new AnalyzedMethodTreeNode(md) { |
|
|
|
return new AnalyzedMethodTreeNode(md) { |
|
|
|
Language = this.Language |
|
|
|
Language = this.Language |
|
|
|
}; |
|
|
|
}; |
|
|
|
//case IProperty pd:
|
|
|
|
case IProperty pd: |
|
|
|
// return new AnalyzedPropertyTreeNode(pd) {
|
|
|
|
return new AnalyzedPropertyTreeNode(pd) { |
|
|
|
//Language = this.Language
|
|
|
|
Language = this.Language |
|
|
|
//};
|
|
|
|
}; |
|
|
|
//case IEvent ed:
|
|
|
|
case IEvent ed: |
|
|
|
// return new AnalyzedEventTreeNode(ed) {
|
|
|
|
return new AnalyzedEventTreeNode(ed) { |
|
|
|
//Language = this.Language
|
|
|
|
Language = this.Language |
|
|
|
//};
|
|
|
|
}; |
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new NotSupportedException(); |
|
|
|
throw new NotSupportedException(); |
|
|
|
} |
|
|
|
} |
|
|
@ -103,7 +103,7 @@ namespace ICSharpCode.ILSpy.Analyzers |
|
|
|
this.Children.Clear(); |
|
|
|
this.Children.Clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override bool HandleAssemblyListChanged(ICollection<LoadedAssembly> removedAssemblies, ICollection<LoadedAssembly> addedAssemblies) |
|
|
|
public override bool HandleAssemblyListChanged(ICollection<LoadedAssembly> removedAssemblies, ICollection<LoadedAssembly> addedAssemblies) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// only cancel a running analysis if user has manually added/removed assemblies
|
|
|
|
// only cancel a running analysis if user has manually added/removed assemblies
|
|
|
|