public bool Decompile(IDecompileNodeContext context) { var children = context.ExecuteInUIThread(() => { TreeNode.EnsureChildrenLoaded(); return(TreeNode.DataChildren.OfType <HexNode>().ToArray()); }); context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.HexNode_PE); context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.NodesUseHexEditorMsg); foreach (HexNode node in children) { context.Language.WriteCommentLine(context.Output, string.Empty); node.Decompile(context); } return(true); }
public bool Decompile(IDecompileNodeContext context, IFileTreeNodeData node) { new NodeDecompiler(a => context.ExecuteInUIThread(() => a()), context.Output, context.Language, context.DecompilationContext, context).Decompile(node); return(true); }
public bool Decompile(IDecompileNodeContext context, IFileTreeNodeData node) { new NodeDecompiler(a => context.ExecuteInUIThread(() => a()), context.Output, context.Language, context.DecompilationContext, context).Decompile(node); return true; }
public bool Decompile(IDecompileNodeContext context) { var children = context.ExecuteInUIThread(() => { TreeNode.EnsureChildrenLoaded(); return TreeNode.DataChildren.OfType<HexNode>().ToArray(); }); context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.HexNode_PE); context.Language.WriteCommentLine(context.Output, dnSpy_AsmEditor_Resources.NodesUseHexEditorMsg); foreach (HexNode node in children) { context.Language.WriteCommentLine(context.Output, string.Empty); node.Decompile(context); } return true; }