Ejemplo n.º 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);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 public Caller(TextFilePosition source, int parentIndex)
 {
     this.Source      = source;
     this.ParentIndex = parentIndex;
 }