Browse Source

comment code and add inner types to SourceCodeMapping

pull/191/merge
Eusebiu Marcu 14 years ago
parent
commit
e8c46b4311
  1. 20
      ICSharpCode.Decompiler/CodeMappings.cs

20
ICSharpCode.Decompiler/CodeMappings.cs

@ -24,10 +24,21 @@ namespace ICSharpCode.Decompiler @@ -24,10 +24,21 @@ namespace ICSharpCode.Decompiler
/// </summary>
public class SourceCodeMapping
{
/// <summary>
/// Gets or sets the source code line number in the output.
/// </summary>
public int SourceCodeLine { get; set; }
/// <summary>
/// Gets or sets IL Range offset for the source code line. E.g.: 13-19 &lt;-&gt; 135.
/// </summary>
public ILRange ILInstructionOffset { get; set; }
/// <summary>
/// Gets or sets the current types at the source code line. E.g.: for int a = dictionary.Count; the list will contain System.Int32 and System.Collections.Generic.Dictionary&lt;TKey, TValue&gt;.
/// </summary>
public List<TypeDefinition> InnerTypes { get; set; }
public int[] ToArray()
{
int[] result = new int[2];
@ -43,10 +54,19 @@ namespace ICSharpCode.Decompiler @@ -43,10 +54,19 @@ namespace ICSharpCode.Decompiler
/// </summary>
public sealed class MethodMapping
{
/// <summary>
/// Gets or sets the type of the mapping.
/// </summary>
public TypeDefinition Type { get; set; }
/// <summary>
/// Metadata token of the method.
/// </summary>
public uint MetadataToken { get; set; }
/// <summary>
/// Gets or sets the source code mappings.
/// </summary>
public List<SourceCodeMapping> MethodCodeMappings { get; set; }
public int[] ToArray()

Loading…
Cancel
Save