Beispiel #1
0
        /// <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;
 }
Beispiel #3
0
 public SegmentInfo()
 {
     type   = SegmentKind.Line;
     points = null;
 }
Beispiel #4
0
 private Segment(SegmentKind kind, string value)
 {
     Kind = kind;
     Value = value;
 }
Beispiel #5
0
 private Segment(SegmentKind kind, string value)
 {
     Kind  = kind;
     Value = value;
 }