StoryTeller.Persistence.WriterVisitor.RunStep C# (CSharp) Method

RunStep() public method

public RunStep ( IStep step ) : void
step IStep
return void
        public void RunStep(IStep step)
        {
            if (step.Description.IsNotEmpty())
            {
                _nodes.Peek().AddComment(step.Description);
            }

            // Here, this should be changed
            _nodes.Peek().AddChild(step.GrammarKey).WithProperties(step.Values).With(elem =>
            {
                step.EachLeaf((key, leaf) =>
                {
                    _nodes.Push(elem.AddChild(key));

                    leaf.AcceptVisitor(this);

                    _nodes.Pop();
                });
            });
        }