using System; using System.Collections.Generic; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Text; namespace ICSharpCode.Decompiler.Metadata { using SRMDocument = System.Reflection.Metadata.Document; /// /// A sequence point read from a PDB file or produced by the decompiler. /// public struct SequencePoint { /// /// IL start offset. /// public int Offset { get; set; } /// /// IL end offset. /// /// /// This does not get stored in debug information; /// it is used internally to create hidden sequence points /// for the IL fragments not covered by any sequence point. /// public int EndOffset { get; set; } public int StartLine { get; set; } public int StartColumn { get; set; } public int EndLine { get; set; } public int EndColumn { get; set; } public bool IsHidden { get { return StartLine == 0xfeefee && StartLine == EndLine; } } public string DocumentUrl { get; set; } internal void SetHidden() { StartLine = EndLine = 0xfeefee; } } }