/// <summary> /// Converts a segment kind to a human-readable string. /// </summary> public static string KindToString(SegmentKind kind) { switch (kind) { case SegmentKind.Code: return("Code"); case SegmentKind.Data: return("Data"); case SegmentKind.JumpTable: return("Jump Table"); case SegmentKind.PathName: return("Pathname"); case SegmentKind.LibraryDict: return("Library Dict"); case SegmentKind.Init: return("Init"); case SegmentKind.AbsoluteBank: return("Abs Bank"); case SegmentKind.DpStack: return("DP/Stack"); default: return("???"); } }
public PropertyPathSegment(SegmentKind kind, string content) { this.Kind = kind; this.Content = content; }
public SegmentInfo() { type = SegmentKind.Line; points = null; }
private Segment(SegmentKind kind, string value) { Kind = kind; Value = value; }