Browse Source

Only search in types defined in MainAssembly. Remove old debug message.

pull/1030/head
Siegfried Pammer 7 years ago
parent
commit
5552982edd
  1. 2
      ILSpy/Languages/CodeMappingInfo.cs
  2. 2
      ILSpy/SearchPane.cs

2
ILSpy/Languages/CodeMappingInfo.cs

@ -47,7 +47,7 @@ namespace ICSharpCode.ILSpy @@ -47,7 +47,7 @@ namespace ICSharpCode.ILSpy
public void AddMapping(MethodDefinitionHandle parent, MethodDefinitionHandle part)
{
Debug.Print("Parent: " + MetadataTokens.GetRowNumber(parent) + " Part: " + MetadataTokens.GetRowNumber(part));
//Debug.Print("Parent: " + MetadataTokens.GetRowNumber(parent) + " Part: " + MetadataTokens.GetRowNumber(part));
if (parents.ContainsKey(part))
return;
parents.Add(part, parent);

2
ILSpy/SearchPane.cs

@ -222,7 +222,7 @@ namespace ICSharpCode.ILSpy @@ -222,7 +222,7 @@ namespace ICSharpCode.ILSpy
continue;
CancellationToken cancellationToken = cts.Token;
foreach (var type in typeSystem.GetTopLevelTypeDefinitions()) {
foreach (var type in typeSystem.MainAssembly.TopLevelTypeDefinitions) {
cancellationToken.ThrowIfCancellationRequested();
searcher.Search(type, language, AddResult);
}

Loading…
Cancel
Save