mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Resolving a type to its tree node scanned every descendant of the root, which means every namespace node of every assembly - all of them built eagerly - to find the one assembly node it needed. A package child records the bundle it came from, so that chain leads straight to the single top-level node worth descending into, and only that package's folders are searched from there. The two sibling lookups only ever considered the root's direct children, so neither resolved anything inside a package at all. Sharing one helper fixes them along the way, and it expands package folders on the descent because search surfaces package contents whether or not the tree was ever opened there. Assisted-by: Claude:claude-opus-5[1m]:Claude Codepull/4023/head
3 changed files with 92 additions and 6 deletions
Loading…
Reference in new issue