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
public void AddMapping(MethodDefinitionHandle parent, MethodDefinitionHandle part) 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)) if (parents.ContainsKey(part))
return; return;
parents.Add(part, parent); parents.Add(part, parent);

2
ILSpy/SearchPane.cs

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

Loading…
Cancel
Save