/// <summary> /// Collects the control variables. /// </summary> /// <param name="collector">The collector.</param> /// <param name="controlPathSegment">The control path segment.</param> public void CollectControl(TreeIndexCollector collector, ControlPathSegment controlPathSegment) { int currentCallLevel = collector.GetCurrentCallLevel(); ContainerCollectorNode controlStackNode = GetOrCreateControlStackNode(collector, currentCallLevel); controlStackNode.Collect(collector, controlPathSegment); HasRootNode = true; }
/// <summary> /// Collects the variable. /// </summary> /// <param name="collector">The collector.</param> /// <param name="variableSegment">The variable segment.</param> public void CollectVariable(TreeIndexCollector collector, VariablePathSegment variableSegment) { int currentCallLevel = collector.GetCurrentCallLevel(); ContainerCollectorNode variableStackNode = GetOrCreateVariableStackNode(collector, currentCallLevel); variableStackNode.Collect(collector, variableSegment); HasRootNode = true; }