Skip to content

Commit

Permalink
fix: Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Jun 22, 2023
1 parent ad2d9d6 commit 65f546d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ILSpy/TreeNodes/AssemblyReferenceTreeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed class AssemblyReferenceTreeNode : ILSpyTreeNode
{
readonly AssemblyReference r;
readonly AssemblyTreeNode parentAssembly;
private bool? loadFualt;
private bool? moduleResolveFailed;

public AssemblyReferenceTreeNode(AssemblyReference r, AssemblyTreeNode parentAssembly)
{
Expand All @@ -46,7 +46,7 @@ public override object Text {
get { return Language.EscapeName(r.Name) + GetSuffixString(r.Handle); }
}

public override object Icon => loadFualt switch {
public override object Icon => moduleResolveFailed switch {
true => Images.AssemblyWarning,
_ => Images.Assembly
};
Expand Down Expand Up @@ -83,13 +83,13 @@ protected override void LoadChildren()
var module = resolver.Resolve(r);
if (module != null)
{
loadFualt = false;
moduleResolveFailed = false;
foreach (var childRef in module.AssemblyReferences)
this.Children.Add(new AssemblyReferenceTreeNode(childRef, parentAssembly));
}
else
{
loadFualt = true;
moduleResolveFailed = true;
}
RaisePropertyChanged(nameof(Icon));
}
Expand All @@ -112,11 +112,11 @@ public override void Decompile(Language language, ITextOutput output, Decompilat
if (info.HasErrors)
{
language.WriteCommentLine(output, "There were some problems during assembly reference load, see below for more information!");
loadFualt = true;
moduleResolveFailed = true;
}
else
{
loadFualt = false;
moduleResolveFailed = false;
}
foreach (var item in info.Messages)
{
Expand Down

0 comments on commit 65f546d

Please sign in to comment.