StoryTeller.Persistence.WriterVisitor.RunStep C# (CSharp) 메소드

RunStep() 공개 메소드

public RunStep ( IStep step ) : void
step IStep
리턴 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();
                });
            });
        }