From 85b8f848c3cfbdbdc2aa6810decc8c935111e81c Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Mon, 11 Jul 2011 02:42:40 +0200 Subject: [PATCH] Add Decompilation data class to be used by other applications to store code mappings information. --- ICSharpCode.Decompiler/CodeMappings.cs | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/ICSharpCode.Decompiler/CodeMappings.cs b/ICSharpCode.Decompiler/CodeMappings.cs index 485792f4a..20bcbf2d3 100644 --- a/ICSharpCode.Decompiler/CodeMappings.cs +++ b/ICSharpCode.Decompiler/CodeMappings.cs @@ -24,6 +24,7 @@ using System.Linq; using ICSharpCode.Decompiler.Ast; using ICSharpCode.Decompiler.Disassembler; using ICSharpCode.Decompiler.ILAst; +using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; namespace ICSharpCode.Decompiler @@ -316,4 +317,30 @@ namespace ICSharpCode.Decompiler return true; } } + + /// + /// Decompilation data. Can be used by other applications to store the decompilation data. + /// + public class DecompileInformation + { + /// + /// Gets ot sets the code mappings + /// + public Dictionary> CodeMappings { get; set; } + + /// + /// Gets or sets the local variables. + /// + public ConcurrentDictionary> LocalVariables { get; set; } + + /// + /// Gets the list of MembeReferences that are decompiled (TypeDefinitions, MethodDefinitions, etc) + /// + public Dictionary DecompiledMemberReferences { get; set; } + + /// + /// Gets (or internal sets) the AST nodes. + /// + public IEnumerable AstNodes { get; set; } + } }