mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
31 lines
789 B
C#
31 lines
789 B
C#
namespace Semmle.Extraction.PDB
|
|
{
|
|
/// <summary>
|
|
/// A sequencepoint is a marker in the source code where you can put a breakpoint, and
|
|
/// maps instructions to source code.
|
|
/// </summary>
|
|
public struct SequencePoint
|
|
{
|
|
/// <summary>
|
|
/// The byte-offset of the instruction.
|
|
/// </summary>
|
|
public int Offset { get; }
|
|
|
|
/// <summary>
|
|
/// The source location of the instruction.
|
|
/// </summary>
|
|
public Location Location { get; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("{0} = {1}", Offset, Location);
|
|
}
|
|
|
|
public SequencePoint(int offset, Location location)
|
|
{
|
|
Offset = offset;
|
|
Location = location;
|
|
}
|
|
}
|
|
}
|