Example #1
0
        public int AddCaller(TextFilePosition source, int parentIndex)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            this.Callers.Add(new Caller(source, parentIndex));
            return(this.Callers.Count - 1);
        }
Example #2
0
        public MappingEntry(TextPosition generated, TextFilePosition original, int callerIndex, EntryFeatures features)
        {
            if (generated == null)
            {
                throw new ArgumentNullException(nameof(generated));
            }
            this.Generated = generated;

            if (original == null)
            {
                throw new ArgumentNullException(nameof(original));
            }
            this.Source = original;

            this.CallerIndex = callerIndex;
            this.Features    = features;
        }
Example #3
0
 public Caller(TextFilePosition source, int parentIndex)
 {
     this.Source      = source;
     this.ParentIndex = parentIndex;
 }