51 lines
1.0 KiB
C#
51 lines
1.0 KiB
C#
// dnlib: See LICENSE.txt for more info
|
|
|
|
using System.Diagnostics;
|
|
|
|
namespace dnlib.DotNet.Pdb {
|
|
/// <summary>
|
|
/// PDB sequence point
|
|
/// </summary>
|
|
[DebuggerDisplay("({StartLine}, {StartColumn}) - ({EndLine}, {EndColumn}) {Document.Url}")]
|
|
public sealed class SequencePoint {
|
|
/// <summary>
|
|
/// PDB document
|
|
/// </summary>
|
|
public PdbDocument Document { get; set; }
|
|
|
|
/// <summary>
|
|
/// Start line
|
|
/// </summary>
|
|
public int StartLine { get; set; }
|
|
|
|
/// <summary>
|
|
/// Start column
|
|
/// </summary>
|
|
public int StartColumn { get; set; }
|
|
|
|
/// <summary>
|
|
/// End line
|
|
/// </summary>
|
|
public int EndLine { get; set; }
|
|
|
|
/// <summary>
|
|
/// End column
|
|
/// </summary>
|
|
public int EndColumn { get; set; }
|
|
|
|
/// <summary>
|
|
/// Clones this instance
|
|
/// </summary>
|
|
/// <returns>A new cloned instance</returns>
|
|
public SequencePoint Clone() {
|
|
return new SequencePoint() {
|
|
Document = Document,
|
|
StartLine = StartLine,
|
|
StartColumn = StartColumn,
|
|
EndLine = EndLine,
|
|
EndColumn = EndColumn,
|
|
};
|
|
}
|
|
}
|
|
}
|