/// <summary> /// Creates the value child. /// </summary> /// <param name="location">The location.</param> /// <returns>Child node</returns> public virtual LocationCollectorNode CreateValueChild(ValueLocation location) { ValueCollectorNode node = new ValueCollectorNode(location); addValueChild(node); return(node); }
public FieldLocationVisitor(TreeIndexCollector collector, FieldPathSegment fieldSegment, ValueCollectorNode node) : base(collector.Snapshot.MemoryAssistant) { this.collector = collector; this.fieldSegment = fieldSegment; this.node = node; }
public IndexLocationVisitor(TreeIndexCollector collector, IndexPathSegment indexSegment, ValueCollectorNode node) : base(collector.Snapshot.MemoryAssistant) { this.collector = collector; this.indexSegment = indexSegment; this.node = node; }
/// <summary> /// Adds the value child. /// </summary> /// <param name="node">The node.</param> public void addValueChild(ValueCollectorNode node) { if (ValueNodes == null) { ValueNodes = new List <ValueCollectorNode>(); } ValueNodes.Add(node); ChildNodes.Add(node); }