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